# remotes::install_bitbucket("cancercentrum/rccshiny", ref = "master", type = "binary")
library(testthat)
library(shinytest)
library(rccShiny)
sysname <- tolower(Sys.info()[["sysname"]])
# Use latest release/stable version
if (packageVersion("rccShiny") == "1.11.0" & sysname == "darwin") {
# Run tests
testthat::test_dir("tests/testthat", reporter = "minimal", stop_on_failure = FALSE, package = "rccShiny")
# Update snapshots of expected shinytest results
appdir_list <- list(
file.path("tests", "testthat", "apps", "sv", "app1"),
file.path("tests", "testthat", "apps", "sv", "app1hc"),
file.path("tests", "testthat", "apps", "sv", "inca1"),
file.path("tests", "testthat", "apps", "sv", "inca1hc"),
file.path("tests", "testthat", "apps", "sv", "legacy1-latest"),
file.path("tests", "testthat", "apps", "sv", "legacy1hc-latest"),
file.path("tests", "testthat", "apps", "sv", "legacy2-latest"),
file.path("tests", "testthat", "apps", "en", "legacy2-latest")
)
for (appdir in appdir_list) {
try(snapshotUpdate(appdir, "load-app", suffix = "mactest"))
}
appdir_list <- list(
file.path("tests", "testthat", "apps", "sv", "app1"),
file.path("tests", "testthat", "apps", "sv", "app1hc"),
file.path("tests", "testthat", "apps", "sv", "legacy1-latest"),
file.path("tests", "testthat", "apps", "sv", "legacy1hc-latest")
)
for (appdir in appdir_list) {
try(snapshotUpdate(appdir, "nav-app1", suffix = "mactest"))
}
appdir_list <- list(
file.path("tests", "testthat", "apps", "sv", "inca1"),
file.path("tests", "testthat", "apps", "sv", "inca1hc")
)
for (appdir in appdir_list) {
try(snapshotUpdate(appdir, "nav-inca1", suffix = "mactest"))
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.