migrate_from_shinytest | R Documentation |
This function will migrate standard shinytest test files to the new shinytest2 + testthat ed 3 snapshot format.
migrate_from_shinytest(
app_dir,
...,
clean = TRUE,
include_expect_screenshot = missing_arg(),
quiet = FALSE
)
app_dir |
Directory containing the Shiny application or Shiny Rmd file |
... |
Must be empty. Allows for parameter expansion. |
clean |
If TRUE, then the shinytest test directory and runner will be deleted after the migration to use shinytest2. |
include_expect_screenshot |
If |
quiet |
Logical that determines if migration information and steps should be printed to the console. |
shinytest file contents will be traversed and converted to the new shinytest2 format. If the shinytest code can not be directly seen in the code, then it will not be converted.
Invisible TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.