needy: needy
Version 0.2

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.

Browse man pages Browse package API and functions Browse package files

AuthorRyan Grannell
Date of publication2013-07-31 21:17:45
MaintainerRyan Grannell <r.grannell2@gmail.com>
LicenseMIT + file LICENSE
Version0.2
Package repositoryView on CRAN
InstallationInstall the latest version of this package by entering the following in R:
install.packages("needy")

Man pages

require_a: Ensure a value has a desired set of traits.

Functions

add_trait Man page Source code
check_traits Source code
deparse_to_string Source code
implemented_traits Man page Source code
is_boolean Source code
messagef Source code
require_a Man page Source code
stopf Source code
validate_traits Source code
warningf Source code

Files

inst
inst/examples
inst/examples/example-require_a.R
inst/tests
inst/tests/test-report.R
inst/tests/test-errors.R
inst/tests/test-custom-tests.R
tests
tests/run_tests.R
NAMESPACE
NEWS
R
R/require_a.R
R/report.R
R/trait_tests.R
R/tools.R
README.md
MD5
DESCRIPTION
man
man/require_a.Rd
LICENSE
needy documentation built on May 19, 2017, 8:37 a.m.