Skip to contents

This is a wrapper for set_pkg_environment

Usage

reset_pkg_environment()

Value

A new environment(), matools_env, in the .GlobalEnv namespace.

Examples

library(matools)

# create an environment and add objects ----
set_pkg_environment(force_new = TRUE)
matools_env$parameter_1 <- TRUE
matools_env$parameter_2 <- FALSE
ls(matools_env)
#> [1] "parameter_1" "parameter_2"

# reset the environment ----
reset_pkg_environment()
rm(matools_env, envir = .GlobalEnv)