This function aims to generate a template to be used
by shiny.benchmark. It will create the necessary structure on path
with
some examples of tests using Cypress and shinytest2. Also, a simple
application will be added to the folder as well as instructions on how
to perform the performance checks. Be aware that a new git repo is need in
the selected path
.
Usage
load_example(path, force = FALSE)
Arguments
- path
A character vector of full path name
- force
Create example even if directory does not exist or is not empty
Value
Print on the console instructions to run the example
Examples
load_example(file.path(tempdir(), "example_destination"), force = TRUE)
#> app created at /tmp/RtmpSdnjxE/example_destination
#> run_tests.R created at /tmp/RtmpSdnjxE/example_destination
#> Follow instructions in /tmp/RtmpSdnjxE/example_destination/run_tests.R