-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
startup(): Add argument and env var to (always) skip .RData #42
Comments
Maybe add an option to prompt the user whether they wish to load .RData or not? (Is it ok to prompt user at startup?) Examples: |
HenrikBengtsson
added a commit
that referenced
this issue
Dec 4, 2019
HenrikBengtsson
added a commit
that referenced
this issue
Dec 4, 2019
HenrikBengtsson
added a commit
that referenced
this issue
Dec 4, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A
.RData
file be loaded when R/Rscript is started, unless--no-restore-data
(or--vanilla
) is given. Usingstartup::startup()
, it would be possible to have this as an argument, which could default to an env variableR_STARTUP_RDATA
, to control how to handle such.RData
files. One could:R_STARTUP_RDATA=default
: Handle it as default (as now)R_STARTUP_RDATA=rename
: Automatically rename it so it's not loaded (emulate a permanent--no-restore-data
), e.g..RData
->.RData.20171212
.R_STARTUP_RDATA=remove
: Automatically remove it, because you think they're always bad and only there because of a mistakes.R_STARTUP_RDATA=prompt
: Prompt the user whether they wish to load.RData
or not? (Is it ok to prompt user at startup?)Not sure if this is a good idea or needed, but it's possible because:
The text was updated successfully, but these errors were encountered: