library(testthat)
library(renv, warn.conflicts = FALSE)
if (!renv:::renv_tests_supported()) {
message("* renv does not support running tests on this platform.")
if (!interactive()) quit(status = 0L)
}
if (Sys.info()[["sysname"]] == "Linux") {
tools <- asNamespace("tools")
if (is.function(tools$R_user_dir)) {
cachedir <- tools$R_user_dir("renv", "cache")
dir.create(cachedir, recursive = TRUE, showWarnings = FALSE)
}
}
test_check("renv")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.