tests/testthat/helpers-fastmap.R

# Get the environment from a fastmap/fastqueue/faststack object, so we can
# access internal objects.
env <- function(x) {
  environment(x$as_list)
}

# An empty named list is different from an empty unnamed list. This creates
# the former.
empty_named_list <- function() {
  list(a=1)[0]
}

Try the fastmap package in your browser

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

fastmap documentation built on June 22, 2024, 10:59 a.m.