verbal-autopsy-software / InSilicoVA

R package for InSilicoVA framework
3 stars 6 forks source link

Bug: java_option parameter needs error checking. Can currently be set to anything. #22

Closed mjutras-mitre closed 4 years ago

mjutras-mitre commented 5 years ago

The java_option parameter to the get.indiv function may be set to anything. For example, I can call it with java_option = "-GarbageJavaOption" and it runs. It would be best to utilize match.arg ought to be used to ensure this isn't allowed.

https://github.com/verbal-autopsy-software/InSilicoVA/blob/7f770ac7ab8d82c1b9de25debc7e734f06273df8/InSilicoVA/R/get_indiv.r#L45