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
229
Last 30 days
19955th
590
Last 90 days
2.1K
Last year
Trend: +23.1% (30d vs prior 30d)
CRAN Check Status
1
ERROR
13
OK
Show all 14 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-macos-arm64 | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | ERROR |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check details (1 non-OK)
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 _problems/test-trace-package-37.R
* installing *binary* package ‘rematch’ ...
* DONE (rematch)
Saving _problems/test-trace-package-57.R
* installing *source* package ‘rematch’ ...
** 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)
* installing *source* package ‘rematch’ ...
** 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 2 | WARN 0 | SKIP 2 | PASS 45 ]
══ Skipped tests (2) ═══════════════════════════════════════════════════════════
• On CRAN (2): 'test-trace-fns.R:4:1', 'test-utils.R:47:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-trace-package.R:37:5'): trace installed package ──────────────
Expected `all(grepl("\\.Rd$", x0$source_file_name))` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
── Failure ('test-trace-package.R:57:5'): trace 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
Check History
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