begin | R Documentation |
Perform common operations before running a script. Includes clearing environment objects, disabling scientific notation, loading common packages, running fun/ or functions/ folders, and setting the working directory to the location of the current file.
begin(
wd = NULL,
load = c("magrittr", "dplyr"),
keep = NULL,
scipen = FALSE,
verbose = TRUE,
repos = "http://cran.us.r-project.org",
runpath = NULL
)
wd |
Path to set as working directory. If blank, the location of the current file open in RStudio will be used if available. If FALSE, the working directory will not be changed. |
load |
Packages to load. If not available, they'll be installed. |
keep |
Environment objects to keep. If blank, all objects will be removed from the environment. |
scipen |
Do scientific notation in output? |
verbose |
Print information about what the function is doing? |
repos |
choose the URL to install from. |
runpath |
folder or file specified |
begin()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.