R/environment.R

Defines functions set_environment_variable get_environment_variable init_environment

init_environment = function() {
  tnypltptns = parent.env(environment())
  assign(".tinyplot_env", new.env(), envir = tnypltptns)
  .tpar = new.env()
  assign(".tpar", .tpar, envir = tnypltptns)
}

get_environment_variable = function(name) {
  get(name, envir = get(".tinyplot_env", envir = parent.env(environment())))
}

set_environment_variable = function(name, value) {
  assign(name, value, envir = get(".tinyplot_env", envir = parent.env(environment())))
}

Try the tinyplot package in your browser

Any scripts or data that you put into this service are public.

tinyplot documentation built on Aug. 8, 2025, 6:23 p.m.