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(
file = rprofile_user(),
backup = TRUE,
overwrite = FALSE,
path = dirname(file),
make_dirs = TRUE,
quiet = FALSE
)
uninstall(file = rprofile_user(), backup = TRUE, quiet = FALSE)
Arguments
file |
The pathname where to create or update the ‘.Rprofile’ file. |
backup |
If |
overwrite |
If the R startup file already exist, then |
path |
The folder where to create ‘.Renviron.d’ and ‘.Rprofile.d’ directory. |
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.