blade_setup | R Documentation |
blade_setup()
is your first step. It sets up the function you want to
repeat for each iteration, as well as various other settings for your run.
blade_setup( run_name, runr, output_dir = NULL, timeout = NULL, max_attempts = 2, log_output = FALSE )
run_name |
The name of the run. Used for output folder naming. |
runr |
A function to be executed as the main test. Must receive two arguments: params and context. See vignette for more details. |
output_dir |
A path to be given to the runr, if required. Optional. |
timeout |
An int representing the time in seconds to allow the runr.
If the runr exceeds it, the function will either try again or move on depending on the |
max_attempts |
An int specifying the number of time to attempt a run before moving on. Optional. |
log_output |
If |
Detailed explanation of how the runr and setup work can be found at the README.
foo_run <- function() { # Do some fancy stuff } blade_setup("test-run", foo_run, "path/to/save/outputs")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.