sidora-tools / sidora.cli

A CLI for terminal based data extraction and summary for the MPI-SHH Department of Archaeogenetics PANDORA Database
Other
0 stars 0 forks source link

Argument checks #25

Open nevrome opened 4 years ago

nevrome commented 4 years ago

R is a dynamically typed language and there are no default input checks for functions. Stephans interface criticism some weeks ago was a wake-up call and made me aware how wonky R code often feels just because of that: Functions sometimes fail and produce the weirdest output if used with the wrong input. Of course this design choice also has big advantages and allows for really crazy dynamic code, but for many interfaces it's harmful.

I just took a look at the multitude of packages available to compensate for this and came to the conclusion, that checkmate might be worth a try.

jfy133 commented 4 years ago

Looks good!

stschiff commented 4 years ago

Yes, certainly needed in a language like R, although I haven't looked into the exact interface.