Skip to contents

Provides a location to store package objects and variables, allowing for easy removal of data analysis parameters within an analysis pipeline. Note: sets parent environment to env: empty to avoid scope escape.

Usage

set_pkg_environment(force_new = FALSE)

Arguments

force_new

Boolean, when TRUE a new matools_env will be created, overwriting all existing parameters. Default is FALSE.

Value

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

Examples

library(matools)

set_pkg_environment(force_new = TRUE)
print(matools_env)
#> <environment: 0x55b00f1c9f48>
rm(matools_env, envir = .GlobalEnv)