install {startup} | R Documentation |
Install and uninstall support for .Renviron.d and .Rprofile.d startup directories
Description
Install and uninstall support for ‘.Renviron.d’ and ‘.Rprofile.d’ startup directories by appending / removing one line of code to the ‘~/.Rprofile’ file.
Usage
install(
path = "~",
backup = TRUE,
overwrite = FALSE,
make_dirs = TRUE,
quiet = FALSE
)
uninstall(path = "~", backup = TRUE, quiet = FALSE)
Arguments
path |
The path where to create / update the ‘.Rprofile’ file. |
backup |
If |
overwrite |
If the R startup file already exist, then |
make_dirs |
If |
quiet |
If |
Value
The pathname of the R startup file modified.
Functions
-
install()
: injects atryCatch(startup::startup(), ...)
call to the ‘.Rprofile’ file, which is created if missing. -
uninstall()
: Remove calls tostartup::startup()
and similar.