Skip to contents

Clear objects which are created in the current script.

Usage

clear_script_objects(
  ...,
  filepath = NULL,
  list = character(),
  pos = -1,
  envir = as.environment(pos),
  line_start = 0,
  line_end = -1L,
  silent = TRUE
)

Arguments

...

which object(s) to keep.

filepath

path to script

list

list of objects

pos

what position in the environment to clear

envir

which environment to clear

line_start

from which line

line_end

until which line

silent

whether to mute console output