clear_env: Function to clear all elements within environment

Description Usage Arguments Examples

View source: R/utils.R

Description

Function to clear all elements within environment

Usage

1
clear_env(env, ...)

Arguments

env

environment to clean, can be an R environment, or a fastmap2 instance

...

ignored

Examples

1
2
3
4
5
6
env = new.env()
env$a = 1
print(as.list(env))

clear_env(env)
print(as.list(env))

dipsaus documentation built on Sept. 6, 2021, 5:08 p.m.