Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argument checks #25

Open
nevrome opened this issue Jul 13, 2020 · 2 comments
Open

Argument checks #25

nevrome opened this issue Jul 13, 2020 · 2 comments

Comments

@nevrome
Copy link
Member

nevrome commented Jul 13, 2020

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
Copy link
Member

jfy133 commented Jul 14, 2020

Looks good!

@stschiff
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants