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:
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')) |
Bug tracker:https://github.com/hadley/assertthat/issues
Last updated 6 years agofrom:50dc4b0a8a. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Dec 15 2024 |
R-4.5-win | OK | Dec 15 2024 |
R-4.5-linux | OK | Dec 15 2024 |
R-4.4-win | OK | Dec 15 2024 |
R-4.4-mac | OK | Dec 15 2024 |
R-4.3-win | OK | Dec 15 2024 |
R-4.3-mac | OK | Dec 15 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 page | Topics |
---|---|
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 files | assertions-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 dimensions | not_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 |