Nothing
empty_save_test <- function(save_path){
app <- shinytest2::AppDriver$new(app_dir = system.file("shiny", package = "shinyscholar"), name = "e2e_empty_save")
app$set_inputs(tabs = "select")
app$set_inputs(main = "Save")
tryCatch({app$get_download("core_save-save_session", filename = save_path)},
finally = app$stop())
}
save_hist_test <- function(path, save_path){
app <- shinytest2::AppDriver$new(app_dir = system.file("shiny", package = "shinyscholar"), name = "e2e_save_hist")
app$set_inputs(tabs = "select")
app$set_inputs(selectSel = "select_user")
app$upload_file("select_user-raster" = path)
app$set_inputs("select_user-name" = "bio")
app$click("select_user-run")
app$set_inputs(tabs = "plot")
app$set_inputs(plotSel = "plot_hist")
app$set_inputs("plot_hist-bins" = 100)
app$click("plot_hist-run")
app$set_inputs(main = "Save")
tryCatch({app$get_download("core_save-save_session", filename = save_path)},
finally = app$stop())
}
save_scat_test <- function(path, save_path){
app <- shinytest2::AppDriver$new(app_dir = system.file("shiny", package = "shinyscholar"), name = "e2e_save_scat")
app$set_inputs(tabs = "select")
app$set_inputs(selectSel = "select_user")
app$upload_file("select_user-raster" = path)
app$set_inputs("select_user-name" = "bio")
app$click("select_user-run")
app$set_inputs(tabs = "plot")
app$set_inputs(plotSel = "plot_scatter")
app$click("plot_scatter-run")
app$set_inputs(main = "Save")
tryCatch({app$get_download("core_save-save_session", filename = save_path)},
finally = app$stop())
}
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.