needy: needy

needy is a small utility library designed to make testing function inputs less difficult. R is a dynamically typed language, but larger projects need input checking for scalabity. needy offers a single function, require_a( ), which lets you specify the traits an input object should have, such as class, size, numerical properties or number of parameters, while reducing boilerplate code and aiding debugging.

Author
Ryan Grannell
Date of publication
2013-07-31 21:17:45
Maintainer
Ryan Grannell <r.grannell2@gmail.com>
License
MIT + file LICENSE
Version
0.2

View on CRAN

Man pages

require_a
Ensure a value has a desired set of traits.

Files in this package

needy
needy/inst
needy/inst/examples
needy/inst/examples/example-require_a.R
needy/inst/tests
needy/inst/tests/test-report.R
needy/inst/tests/test-errors.R
needy/inst/tests/test-custom-tests.R
needy/tests
needy/tests/run_tests.R
needy/NAMESPACE
needy/NEWS
needy/R
needy/R/require_a.R
needy/R/report.R
needy/R/trait_tests.R
needy/R/tools.R
needy/README.md
needy/MD5
needy/DESCRIPTION
needy/man
needy/man/require_a.Rd
needy/LICENSE