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.7-any)assertthat_0.2.1.9000.zip(r-4.6-any)assertthat_0.2.1.9000.zip(r-4.5-any)
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.7-any)assertthat_0.2.1.9000.tar.gz(r-4.6-any)
assertthat_0.2.1.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
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.23 score 214 stars 1.1k packages 4.3k scripts 170k downloads 6 mentions 26 exports 0 dependencies

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

TargetResultTimeFilesSyslog
linux-develOK108
source / vignettesOK145
linux-releaseOK143
macos-releaseOK106
macos-oldrelOK97
windows-develOK66
windows-releaseOK51
windows-oldrelOK52
wasm-releaseOK76

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