Nothing
# Execute installed scripts in fresh R processes from an unrelated directory.
# Usage: Rscript tools/verify-tutorials.R output_dir
args <- commandArgs(trailingOnly = TRUE)
stopifnot(length(args) == 1L)
dir.create(args[1L], recursive = TRUE, showWarnings = FALSE)
output <- normalizePath(args[1L], mustWork = TRUE)
library(IJSE)
stopifnot(packageVersion("IJSE") >= "0.3.3")
names <- c("ijse", "ijse-brms", "ijse-diagnostics")
previous <- getwd()
setwd(output)
for (name in names) {
script <- system.file("tutorials", paste0(name, ".R"), package = "IJSE")
stopifnot(nzchar(script))
log <- file.path(output, paste0(name, ".log"))
status <- system2(file.path(R.home("bin"), "Rscript"),
shQuote(script), stdout = log, stderr = log)
if (status != 0L) stop("Tutorial failed: ", name, "; see ", log)
cat(name, "passed in a fresh R process.\n")
}
setwd(previous)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.