powered by
A valid parameter paramValue is either NULL or in the space of paramPossibilities.
paramValue
paramPossibilities
ValidateParameterIn(paramValue, paramPossibilities, allowNULL = TRUE)
TRUE if paramValue is valid, otherwise it raises an error.
object. The parameter value to check.
vector. A vector of possible values for the parameter.
logical. Whether or not to allow NULL as a possibility.
if (FALSE) { ValidateParameterIn("all", DataSubset) }
Run the code above in your browser using DataLab