HenrikBengtsson / startup

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

Add `when=<specs>` specification for control when a startup file is processed #12

Open HenrikBengtsson opened 7 years ago

HenrikBengtsson commented 7 years ago

Being able to include a startup script, say, only once a day could possibly be handy. For instance, file .Rprofile.d/when=daily/package=fortunes.R containing

print(fortunes::fortune())

would output a random "fortune" once every 24 hours (and only if package fortures is installed).