View source: R/soundgen_utilities.R
validatePars | R Documentation |
Internal soundgen function
validatePars(p, gp, def, invalidArgAction = c("adjust", "abort", "ignore")[1])
p |
parameter name |
gp |
parameter value |
def |
matrix or dataframe containing reference values (low, high, default) |
invalidArgAction |
what to do if an argument is invalid or outside the range: 'adjust' = reset to default value, 'abort' = stop execution, 'ignore' = throw a warning and continue (may crash) |
Checks whether the value of a numeric parameter falls within the allowed range. Options: abort, reset to default, throw a warning and continue.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.