Skip to content

SciViews/svAssert

Repository files navigation

‘SciViews::R’ - Assertions and Meaningful Error Messages

R-CMD-check codecov CRAN status r-universe status License: MIT Lifecycle: stable

The {svAssert} package provides tools for defensive programming in R, with fast, but versatile assertions partly based on {checkmate}. When an assertion fails, it works hard to issue meaningful and rich-formatted error messages (thanks to rlang::abort() and cli::cli_abort()). These messages can be easily translated in other natural languages. {svAssert} can even translate messages in other packages after they are thrown.

Installation

{svAssert} is not available from CRAN yet. You should install it from the SciViews R-Universe. To install this package and its dependencies, run the following command in R:

install.packages('svAssert', repos = c('https://sciviews.r-universe.dev',
  'https://cloud.r-project.org'))

You can also install the latest development version of {svAssert} from GitHub with:

# install.packages("pak")
pak::pak("SciViews/svAssert")

R should install all required dependencies automatically, and then it should compile and install {svAssert}.

Further explore {svAssert}

You can get further help about this package this way: Make the {svAssert} package available in your R session:

library("svAssert")

Get help about this package:

library(help = "svAssert")
help("svAssert-package")
vignette("svAssert")

For further instructions, please, refer to the help pages at https://www.sciviews.org/svAssert/.

Code of Conduct

Please note that the {svAssert} package is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

About

Assertions and Meaningful Error Messages

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Languages