Nothing
rm(list = ls())
ON_CRAN <- !identical(Sys.getenv("R_NOT_CRAN"), "true")
ON_GH <- identical(Sys.getenv("R_GH"), "true")
ON_CI <- isTRUE(ON_CRAN) || isTRUE(ON_GH)
ON_WINDOWS <- isTRUE(Sys.info()[['sysname']] == "Windows")
ON_OSX <- isTRUE(Sys.info()[['sysname']] == "Darwin")
requiet <- function(package) {
suppressMessages(suppressWarnings(suppressPackageStartupMessages(
require(package, warn.conflicts = FALSE, character.only = TRUE)
)))
}
random_string <- function() {
paste(sample(letters, 30, replace=TRUE), collapse="")
}
compare_files <- function(x, y) {
known <- digest::digest(x, file = TRUE)
unknown <- digest::digest(y, file = TRUE)
expect_equivalent(known, unknown)
}
requiet("tinytest")
requiet("tinysnapshot")
options(width = 10000)
options("tinysnapshot_device" = "svglite")
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.