install | R Documentation |
Install and uninstall support for ‘.Renviron.d’ and ‘.Rprofile.d’ startup directories by appending / removing one line of code to the ‘~/.Rprofile’ file.
install(
path = "~",
backup = TRUE,
overwrite = FALSE,
make_dirs = TRUE,
quiet = FALSE
)
uninstall(path = "~", backup = TRUE, quiet = FALSE)
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 |
The pathname of the R startup file modified.
install()
: injects a tryCatch(startup::startup(), ...)
call to
the ‘.Rprofile’ file, which is created if missing.
uninstall()
: Remove calls to startup::startup()
and similar.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.