HenrikBengtsson / startup

:wrench: R package: startup - Friendly R Startup Configuration
https://henrikbengtsson.github.io/startup/
160 stars 5 forks source link

startup(debug = TRUE): Report on RNG updates #103

Closed HenrikBengtsson closed 2 years ago

HenrikBengtsson commented 2 years ago

startup(debug = TRUE) could report also on whenever an Rprofile script updates the RNG state, i.e. when globalenv()$.Random.seed changes.

One could also use startup::on_session_start() to report on .Random.seed being set via .RData, because .RData is processed before .First();

0.546s: startup::startup()-specific processing ... done
0.546s: The following will be processed next by R:
0.547s: - R_STARTUP_RDATA/startup.rdata=ignore
0.548s: - './.RData' (binary file; 116572 bytes)
0.548s: - R_HISTFILE: ''
0.549s: - './.Rhistory' (508 lines; 22366 bytes)
0.552s: - .First(): no such function on search(), but it might be that one is defined in the ./RData file
0.552s: - Remaining packages per R_DEFAULT_PACKAGES to be attached by base::.First.sys() (in order): 'datasets', 'utils', 'grDevices', 'graphics', 'stats'