withOpt | R Documentation |
This function is inspired by
withr::with_options
: it can be used to
execute some code where package options are temporarily changed. This
function uses a shortened syntax, especially when changing options for
patRoon
.
withOpt(code, ..., prefix = "patRoon.")
code |
The code to be executed. |
... |
Named arguments with options to change. |
prefix |
A |
## Not run:
# Set max parallel processes to five while performing formula calculations
withOpt(MP.maxProcs = 5, {
formulas <- generateFormulas(fGroups, "genform", ...)
})
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.