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.6)assertthat_0.2.1.9000.zip(r-4.5)
assertthat_0.2.1.9000.tgz(r-4.6-any)assertthat_0.2.1.9000.tgz(r-4.5-any)
assertthat_0.2.1.9000.tar.gz(r-4.6-any)assertthat_0.2.1.9000.tar.gz(r-4.5-any)
assertthat_0.2.1.9000.tgz(r-4.5-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'))

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

On CRAN:

Conda:

15.28 score 213 stars 1.0k packages 3.3k scripts 242k downloads 6 mentions 26 exports 0 dependencies

Last updated from:50dc4b0a8a. Checks:8 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK118
source / vignettesOK164
linux-release-x86_64OK113
macos-devel-arm64OK77
macos-release-arm64OK86
windows-develOK61
windows-releaseOK62
wasm-releaseOK87

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