Description Usage Arguments Value Examples
Returns the result function instead of the result of the result function.
1 | validate_and_run.test(fn, ...)
|
fn |
The function to get the function result of. |
... |
Arguments for fn. |
The result function from the calling method.
1 2 3 4 5 6 7 8 | fn <- function(a) {
result <- function() helper()
helper <- function() 2*a
ShadowCAT:::validate_and_run()
}
tst <- ShadowCAT:::validate_and_run.test(fn, 4)
helper <- get('helper', environment(tst))
helper() == 8 || stop('error')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.