library(golgotha)
if(requireNamespace("tinytest", quietly = TRUE)){
if(tinytest::at_home()){
tinytest::test_package("golgotha")
}
if(identical(Sys.getenv("TT_AT_CI"), "TRUE")){
#tests <- c("test-download.R", "test-transformer-default.R", "test-distilbert.R")
#tinytest::test_package("golgotha", pattern = "test-check.R|test-transformer-default.R|test-distilbert.R")
tests <- c("test-distilbert.R", "test-download.R", "test-gpt2.R",
"test-roberta.R", "test-transformer-default.R", "test-transformer-xl.R",
"test-xlm-roberta.R", "test-xlm.R", "test-xlnet.R")
tests <- list.files(pattern = ".R$", path = system.file(package = "golgotha", "tinytest"))
tests <- setdiff(tests, "test-transformer-xl.R")
tinytest::test_package("golgotha", pattern = paste(tests, collapse = "|"))
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.