R/env.R

Defines functions set_invs get_invs

# For indexing invisible node
pkgenv <- new.env(parent = emptyenv())
pkgenv$p <- 0

get_invs <- function() {
  pkgenv$p
}
set_invs <- function(value) {
  old <- pkgenv$p
  pkgenv$p <- value
  invisible(old)
}

Try the consort package in your browser

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

consort documentation built on Sept. 23, 2023, 1:06 a.m.