fake_package_env: fake package env

View source: R/utils.R

fake_package_envR Documentation

fake package env

Description

Create a fake package environment in a way that keeps S4 working (so there is a .packageName) and also conforms to byte-code interpreter requirements on environment structure, particularly ensuring that the created environment is a namespace. A similar procedure (with the exception of not deleting objects) is now in testthat (test_pkg_env).

Usage

fake_package_env()

Author(s)

Toby Dylan Hocking <toby.hocking@r-project.org> [aut, cre], Keith Ponting [aut], Thomas Wutzler [aut], Philippe Grosjean [aut], Markus Müller [aut], R Core Team [ctb, cph]


inlinedocs documentation built on Oct. 19, 2023, 1:06 a.m.