Softpanorama

May the source be with you, but remember the KISS principle ;-)
Home Switchboard Unix Administration Red Hat TCP/IP Networks Neoliberalism Toxic Managers
(slightly skeptical) Educational society promoting "Back to basics" movement against IT overcomplexity and  bastardization of classic Unix

R Startup Arguments

News Scripting languages Recommended Links R Environment Variables R_HOME R_LIBS .Renviron File .Rprofile file
R Packages CRAN package repository How to install R packages from local files R_installation on RHEL R help system Quotes Humor Etc

A number of arguments that relate to startup can be appended to the R startup command (R in a shell environment). The following are particularly important:

--no-environ and --no-init
Tell R to only look for startup files (described in the next section) in the current working directory.
--no-restore
Tells R not to load a file called .RData (the default name for R session files) that may be present in the current working directory.
--no-save
Tells R not to ask the user if they want to save objects saved in RAM when the session is ended with q().

Adding each of these will make R load slightly faster, meaning that slightly less user input is needed when you quit. R’s default setting of loading data from the last session automatically is potentially problematic in this context. See Appendix B of An Introduction to R for more startup arguments.

Tip

A concise way to load a vanilla version of R with all of the preceding options enabled is with an option of the same name:

R --vanilla