startup: Cleans R for use

View source: R/misc-utils.R

startupR Documentation

Cleans R for use

Description

Clears workspace, deletes all objects from global environment, clears graphics and (optionally) sets working directory.

Usage

startup(
  removeObjects = TRUE,
  runGarbageCollection = TRUE,
  clearGraphics = TRUE,
  folder = NULL,
  verbose = TRUE,
  seed = 37
)

Arguments

removeObjects

whether to remove objects from the workspace.

runGarbageCollection

whether to run the garbage collection.

clearGraphics

whether to clear the graphics from the R studio plots screen.

folder

folder name to set the current working directory.

verbose

whether to print informative messages during cleaning.

seed

the random set to be set with set.seed; is ignored if value is set to NULL.

Examples

## Not run: startup()

hgutils documentation built on April 12, 2025, 2:21 a.m.