typetracer: Trace Function Parameter Types

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.

Package details

AuthorMark Padgham [aut, cre] (ORCID: <https://orcid.org/0000-0003-2172-5265>), Filip Krikava [ctb] (Author of original 'injectr' code on which this package builds; https://github.com/PRL-PRG/injectr), covr authors [cph] (Original authors of sections of code from 'covr' package included here in modified form.)
MaintainerMark Padgham <mark.padgham@email.com>
LicenseMIT + file LICENSE
Version0.2.3
URL https://github.com/mpadge/typetracer  https://mpadge.github.io/typetracer/ 
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("typetracer")

Try the typetracer package in your browser

Any scripts or data that you put into this service are public.

typetracer documentation built on Dec. 3, 2025, 5:06 p.m.