Skip to content

Argument checks #25

Open
Open

Description

@nevrome

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.

Activity

  1. jfy133 commented on Jul 14, 2020

    @jfy133
    Member

    Looks good!

  2. stschiff commented on Jul 14, 2020

    @stschiff
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions