Callback handlers that tracks changes in various states of R:
track_globalenv()
- track changes to the global environmenttrack_rng()
- track changes to the state of the random number generator (RNG)track_rplots_files()
- detect whenRplots*.pdf
files are createdtrack_sink()
- track changes in R "output" and "message" sinkstrack_files()
- track changes in files (only names; not content)track_options()
- track changes in R optionstrack_envvars()
- track changes in environment variablestrack_locale()
- track changes in the R localetrack_packages()
- track changes in the set of loaded R packages
Function tracers that are activated when a specific R function is called:
-
trace_closeAllConnections()
- trigger an error or a warning wheneverbase::closeAllConnections()
is called. -
trace_rng_on_load()
- generate a warning if the RNG state is changed from a package being loaded
R package trackers is only available on GitHub and can be installed in R as:
remotes::install_github("HenrikBengtsson/trackers", ref = "develop")
This installs the package from source.