tests/testthat.R

library(testthat)
library(rappdirs)

# ensure CRAN settings don't affect tests
Sys.unsetenv("R_USER_DATA_DIR")
Sys.unsetenv("R_USER_CONFIG_DIR")
Sys.unsetenv("R_USER_CACHE_DIR")

test_check("rappdirs")

Try the rappdirs package in your browser

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

rappdirs documentation built on Jan. 31, 2021, 9:06 a.m.