tests/testthat.R

library(testthat)
library(sehrnett)

if (identical(Sys.getenv("NOT_CRAN", unset = "true"), "true")) {
    tryCatch({
        sehrnett::download_wordnet(debug = TRUE)
    }, error = function(e) {
        message("Unable to download the database for testing. Skipping.")
    })
    if (file.exists(system.file("sqlite-31.db", package = "sehrnett"))){
        test_check("sehrnett")
    }
}

Try the sehrnett package in your browser

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

sehrnett documentation built on March 7, 2023, 6:30 p.m.