Package: assertthat 0.2.1.9000

assertthat: Easy Pre and Post Assertions

An extension to stopifnot() that makes it easy to declare the pre and post conditions that you code should satisfy, while also producing friendly error messages so that your users know what's gone wrong.

Authors:Hadley Wickham [aut, cre]

assertthat_0.2.1.9000.tar.gz
assertthat_0.2.1.9000.zip(r-4.5)assertthat_0.2.1.9000.zip(r-4.4)assertthat_0.2.1.9000.zip(r-4.3)
assertthat_0.2.1.9000.tgz(r-4.4-any)assertthat_0.2.1.9000.tgz(r-4.3-any)
assertthat_0.2.1.9000.tar.gz(r-4.5-noble)assertthat_0.2.1.9000.tar.gz(r-4.4-noble)
assertthat_0.2.1.9000.tgz(r-4.4-emscripten)assertthat_0.2.1.9000.tgz(r-4.3-emscripten)
assertthat.pdf |assertthat.html
assertthat/json (API)

# Install 'assertthat' in R:
install.packages('assertthat', repos = c('https://hadley.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/hadley/assertthat/issues

On CRAN:

14.96 score 206 stars 916 packages 2.0k scripts 217k downloads 6 mentions 26 exports 0 dependencies

Last updated 5 years agofrom:50dc4b0a8a. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 16 2024
R-4.5-winOKOct 16 2024
R-4.5-linuxOKOct 16 2024
R-4.4-winOKOct 16 2024
R-4.4-macOKOct 16 2024
R-4.3-winOKOct 16 2024
R-4.3-macOKOct 16 2024

Exports:%has_args%%has_attr%%has_name%are_equalassert_thathas_argshas_attrhas_extensionhas_nameis.countis.dateis.diris.erroris.flagis.numberis.readableis.scalaris.stringis.timeis.writeablenoNAnot_emptyon_failureon_failure<-see_ifvalidate_that

Dependencies:

Readme and manuals

Help Manual

Help pageTopics
Are two objects equal?are_equal
Assert that certain conditions are true.assert_that see_if
Missing is functions.is.date is.error is.time
Useful test related to filesassertions-file has_extension is.dir is.readable is.writeable
Check a function has specified arguments%has_args% has_args
Has attribute or name?%has_attr% %has_name% has_attr has_name
Does object contain any missing values?noNA
Check an object doesn't have any empty dimensionsnot_empty
Custom failure messages for assertions.on_failure on_failure<-
Assert input is a scalar.is.count is.flag is.number is.scalar is.string
Validate that certain conditions are true.validate_that