inst/tinytest/test_init.R

oldterm <- Sys.getenv("TERM")
Sys.setenv(TERM = "dumb") # will be unset by tinytest
tinytest:::.onLoad()
expect_false(getOption("tt.pr.color"))

# reset option set by .onLoad()
options(tt.pr.color=NULL)

Try the tinytest package in your browser

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

tinytest documentation built on March 7, 2023, 7:43 p.m.