Learn R Programming

dipsaus (version 0.1.6)

clear_env: Function to clear all elements within environment

Description

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

Run this code
# NOT RUN {
env = new.env()
env$a = 1
print(as.list(env))

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

# }

Run the code above in your browser using DataLab