validate.flag: Validate Flag Value Is Valid
Description
Enures that the value
is one of Options
and throws an error
otherwise.
Usage
validate.flag(value, name, Options)
Arguments
value
The user-input value for the parameter
name
The name of the parameter to be displayed in the error
Options
A vector of valid values for value
References
Xingpeng Li, Tatiana Gelaf Romer & Siddhartha Pachhai RVA - RNAseq Visualization Automation tool.