verbal-autopsy-software / InSilicoVA

R package for InSilicoVA framework
3 stars 6 forks source link

Enhancement: Check argument "type" for partial match #25

Closed mjutras-mitre closed 4 years ago

mjutras-mitre commented 5 years ago

Plot type argument should be checked. If the user mistakenly enters type="ba" , they get the errorbar plot

In this case, pmatch for a partial match on arg might be useful if we want to allow partial matches https://github.com/verbal-autopsy-software/InSilicoVA/blob/7f770ac7ab8d82c1b9de25debc7e734f06273df8/InSilicoVA/R/indivplot.r#L95-L101