clean_workspace: Function to clean workspace appart from some variables

View source: R/clean_workspace.R

clean_workspaceR Documentation

Function to clean workspace appart from some variables

Description

Function to clean workspace appart from some variables

Usage

clean_workspace(
  keep = getOption("keep_in_workspace"),
  load_on_exit = getOption("load_in_workspace"),
  envir = .GlobalEnv
)

Arguments

keep

Objects to not be removed from the workspace. Provide as character vector. By default getOption('keep_in_workspace') is called.

load_on_exit

Source a file on exit. Provide a file path. By default getOption('load_in_workspace') is called.

envir

Envrionment to be cleaned. Deafault: .GlobalEnv

Author(s)

Andreas Scharmueller, andschar@proton.me

Examples

clean_workspace()


andschar/andmisc documentation built on Jan. 19, 2025, 10:46 a.m.