Description
Perform common operations before running a script. Includes clearing environment variables, disabling scientific notation, loading common packages, and setting the working directory to the location of the current file.
Usage
begin(wd = NULL, load = c("magrittr", "dplyr"), scipen = FALSE, verbose = TRUE)
Arguments
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.
scipen
Do scientific notation in output?
verbose
Print information about what the function is doing?