Skip to contents

Function to clear all elements within environment

Usage

clear_env(env, ...)

Arguments

env

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

...

ignored

Examples


env = new.env()
env$a = 1
print(as.list(env))
#> $a
#> [1] 1
#> 

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