verbal-autopsy-software / openVA

R package for openVA: a suite of tools for multiple VA methods
4 stars 6 forks source link

Enhancement: Error handing #15

Closed mboyas-mitre closed 5 years ago

mboyas-mitre commented 5 years ago

https://github.com/verbal-autopsy-software/openVA/blob/d6e2af78af59d55ba7dc4421dc1559f1fa94a108/openVA/R/CSMF.r#L51

It could be useful to handle the case where x is none of the specified options to prevent unintentional user errors.

richardli commented 5 years ago

added, thanks