Skip to content

typetracer

Trace Function Parameter Types

v0.2.3 · Dec 3, 2025 · MIT + file LICENSE

Description

The 'R' language includes a set of defined types, but the language itself is "absurdly dynamic" (Turcotte & Vitek (2019) <doi:10.1145/3340670.3342426>), and lacks any way to specify which types are expected by any expression. The 'typetracer' package enables code to be traced to extract detailed information on the properties of parameters passed to 'R' functions. 'typetracer' can trace individual functions or entire packages.

Downloads

266

Last 30 days

15922nd

658

Last 90 days

2.2K

Last year

Trend: +86% (30d vs prior 30d)

CRAN Check Status

2 ERROR
11 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 ERROR
r-release-linux-x86_64 ERROR
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (2 non-OK)
ERROR r-patched-linux-x86_64

tests

Running ‘testthat.R’ [5s/8s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library (testthat)
  > library (typetracer)
  > 
  > test_check ("typetracer")
  * installing *binary* package ‘rematch’ ...
  * DONE (rematch)
  * installing *binary* package ‘rematch’ ...
  * DONE (rematch)
  * installing *source* package ‘rematch’ ...
  ** this is package ‘rematch’ version ‘1.0.1’
  ** using non-staged installation
  ** R
  ** inst
  ** tests
  ** byte-compile and prepare package for lazy loading
  ** help
  *** installing help indices
    converting help for package ‘rematch’
      finding HTML links ... done
      re_match                                html  example
      re_match_all                            html  
      rematch                                 html  
  ** building package indices
  ** testing if installed package can be loaded
  * DONE (rematch)
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 39 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • On CRAN (2): 'test-trace-fns.R:4:1', 'test-utils.R:47:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-trace-package.R:82:5'): trace source package ───────────────────
  Error: Test failures.
  
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 39 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-release-linux-x86_64

tests

Running ‘testthat.R’ [5s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library (testthat)
  > library (typetracer)
  > 
  > test_check ("typetracer")
  * installing *binary* package ‘rematch’ ...
  * DONE (rematch)
  * installing *binary* package ‘rematch’ ...
  * DONE (rematch)
  * installing *source* package ‘rematch’ ...
  ** this is package ‘rematch’ version ‘1.0.1’
  ** using non-staged installation
  ** R
  ** inst
  ** tests
  ** byte-compile and prepare package for lazy loading
  ** help
  *** installing help indices
    converting help for package ‘rematch’
      re_match                                example
  ** building package indices
  ** testing if installed package can be loaded
  * DONE (rematch)
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 39 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • On CRAN (2): 'test-trace-fns.R:4:1', 'test-utils.R:47:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-trace-package.R:82:5'): trace source package ───────────────────
  Error: Test failures.
  
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 39 ]
  Error:
  ! Test failures.
  Execution halted

Check History

ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 7, 2026
ERROR r-release-linux-x86_64

tests

Running ‘testthat.R’ [5s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library (testthat)
  > library (typetracer)
  > 
  > test_check ("typetracer")
  * installing *binary* package ‘rematch’ ...
  * DONE (rematch)
  * inst
...[truncated]...
════════════════════════════════════════════════════
  ── Error ('test-trace-package.R:82:5'): trace source package ───────────────────
  Error: Test failures.
  
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 39 ]
  Error:
  ! Test failures.
  Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 3, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 2, 2026
ERROR r-devel-linux-x86_64-fedora-gcc

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building ‘nse.Rmd’ using rmarkdown

Quitting from nse.Rmd:33-44 [nse1]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `match.call()`:
! unused ar
...[truncated]...
~~~~~~~~~~~~~~~~~~

Error: processing vignette 'nse.Rmd' failed with diagnostics:
unused argument (2:3)
--- failed re-building ‘nse.Rmd’

SUMMARY: processing the following file failed:
  ‘nse.Rmd’

Error: Vignette re-building failed.
Execution halted
OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-oldrel-macos-arm64

tests

Running ‘testthat.R’ [3s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library (testthat)
  > library (typetracer)
  > 
  > test_check ("typetracer")
  * installing *binary* package ‘rematch’ ...
  * DONE (rematch)
  Saving
...[truncated]...
e installed package ──────────────
  Expected `all(grepl("\\.Rd$", x0$source_file_name))` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  
  [ FAIL 2 | WARN 0 | SKIP 2 | PASS 45 ]
  Error:
  ! Test failures.
  Execution halted

Dependency Network

Dependencies Reverse dependencies brio checkmate rlang tibble withr typetracer

Version History

4 tracked
new 0.2.3 Mar 10, 2026
updated 0.2.3 ← 0.2.2 diff Dec 2, 2025
updated 0.2.2 ← 0.1.1 diff Jun 25, 2023
new 0.1.1 Aug 26, 2022