begin: Begin

View source: R/begin.R

beginR Documentation

Begin

Description

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.

Usage

begin(
  wd = NULL,
  load = c("magrittr", "dplyr"),
  keep = NULL,
  scipen = FALSE,
  verbose = TRUE,
  repos = "http://cran.us.r-project.org",
  runpath = NULL
)

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.

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

Examples


begin()

oliver-wyman-actuarial/easyr documentation built on Jan. 27, 2024, 4:37 a.m.