clear_env: Function to clear all elements within environment

View source: R/utils.R

clear_envR Documentation

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


env = new.env()
env$a = 1
print(as.list(env))

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


dipsaus documentation built on July 9, 2023, 5:43 p.m.