Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devOpifex/erratum
Error & warning handling for R inspired by go
https://github.com/devOpifex/erratum
error-handling r rstats warning
Last synced: 3 months ago
JSON representation
Error & warning handling for R inspired by go
- Host: GitHub
- URL: https://github.com/devOpifex/erratum
- Owner: devOpifex
- License: agpl-3.0
- Created: 2020-11-29T15:06:43.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-28T21:10:27.000Z (9 months ago)
- Last Synced: 2024-06-11T08:46:49.283Z (5 months ago)
- Topics: error-handling, r, rstats, warning
- Language: R
- Homepage: http://erratum.opifex.org
- Size: 21 MB
- Stars: 22
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- jimsghstars - devOpifex/erratum - Error & warning handling for R inspired by go (R)
README
[![R-CMD-check](https://github.com/devOpifex/erratum/workflows/R-CMD-check/badge.svg)](https://github.com/devOpifex/erratum/actions)
[![Coveralls test coverage](https://coveralls.io/repos/github/devOpifex/erratum/badge.svg)](https://coveralls.io/github/devOpifex/erratum)[Docs](https://erratum.opifex.org) | [Quick start](https://erratum.opifex.org/guide/get-started.html) | [Install](https://erratum.opifex.org/guide/installation.html)
Erratum handles errors and warnings in a manner inspired by Go's standard error library.
```r
#install.packages("remotes")
remotes::install_github("devOpifex/erratum")
```## Example
```r
library(erratum)err <- e("Input must be a numeric")
err$rule <- is.numericsafe_log <- function(x){
err$check(x)log(x)
}safe_log("two")
```## Code of Conduct
Please note that the erratum project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.