design
design copied to clipboard
Type checkers
Basically moving the writing and guidance part of https://github.com/r-lib/usethis/issues/1692 here, now that our upkeep checklist encourages the use of usethis::use_standalone("r-lib/rlang", "types-check")
... how to write your own check functions:
- Should have arg and call arguments.
- When type checking, always report what the object actually is.
I am also going to close an issue in R Packages that is best covered here.
https://github.com/hadley/r-pkgs/issues/803