Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

test_env

Generate default testing environment.


Description

We use a new environment which inherits from globalenv() or a package namespace. In an ideal world, we'd avoid putting the global environment on the search path for tests, but it's not currently possible without losing the ability to load packages in tests.

Usage

test_env(package = NULL)

testthat

Unit Testing for R

v3.0.2
MIT + file LICENSE
Authors
Hadley Wickham [aut, cre], RStudio [cph, fnd], R Core team [ctb] (Implementation of utils::recover())
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.