tests/testthat.R

# setting R_TESTS to empty string because of
# https://github.com/hadley/testthat/issues/144
# https://github.com/hadley/testthat/issues/86
# revert this when that issue in R is fixed.
Sys.setenv("R_TESTS" = "")

library(testthat)
library(Smisc)
suppressWarnings(RNGversion("3.5.0"))

# There shouldn't be any files in the tmp folder
unlink("testthat/tmp", recursive = TRUE, force = TRUE)
dir.create("testthat/tmp")

test_check("Smisc")

Try the Smisc package in your browser

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

Smisc documentation built on May 2, 2019, 2:46 a.m.