audit_app | R Documentation |
Run all specified tools and requirements to validate Shiny apps project.
audit_app(
headless_actions = NULL,
scope = c("manual", "DMC", "POC"),
debug = FALSE,
timeout = NULL,
cran = FALSE,
vignettes = FALSE,
error_on = "never",
workers = 5,
crash_test = TRUE,
output_validation = FALSE,
coverage = TRUE,
load_testing = TRUE,
profile_code = TRUE,
check_reactivity = TRUE,
flow = FALSE,
r_version = NULL,
locked_deps = NULL,
port = randomPort(min = 3000, max = 3500),
...
)
headless_actions |
Custom code passed as an expression to manipulate the app with headless
web browser, for instance
|
scope |
Project scope. Accepted values |
debug |
Special mode during which unit tests are skipped for faster output. |
timeout |
Time to wait after starting the subprocess (s). Useful is you know how much time the app takes to load. Defaults to 10 seconds locally and 20 seconds on CI/CD. |
cran |
Whether to apply as CRAN check. Defaults to FALSE. |
vignettes |
Whether to build vignettes. Defaults to FALSE. |
error_on |
When to raise an error. Possible choices:
|
workers |
Number of workers for shinycannon. Default to 5. |
crash_test |
Whether to enable crash test of Shiny app. Default to TRUE. |
output_validation |
Whether to compare output snapshots for plots and htmlwidgets. Default to TRUE. |
coverage |
Whether to perform coverage report. Default to TRUE. |
load_testing |
Whether to perform load test. Default to TRUE. |
profile_code |
Whether to profile R code. Default to TRUE. |
check_reactivity |
Whether to check reactivity log. Default to TRUE. |
flow |
Whether to display project overview. Default to TRUE. |
r_version |
R version supported by your IT. |
locked_deps |
List of packages supported by your IT. For instance you
can pass a dataframe like
|
port |
Port to start the app, default to |
... |
Pass extra parameters to run_app_audit. This is useful if you work with packages like golem. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.