Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ankane/rollbar-r
Error tracking for R
https://github.com/ankane/rollbar-r
Last synced: 7 days ago
JSON representation
Error tracking for R
- Host: GitHub
- URL: https://github.com/ankane/rollbar-r
- Owner: ankane
- License: other
- Created: 2016-05-12T09:31:14.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-23T14:34:24.000Z (6 months ago)
- Last Synced: 2024-10-04T16:33:45.423Z (about 1 month ago)
- Language: R
- Homepage:
- Size: 21.5 KB
- Stars: 12
- Watchers: 5
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - ankane/rollbar-r - Error tracking for R (R)
README
# Rollbar R
Error tracking for R
[Rollbar website](https://rollbar.com/)
[![Build Status](https://github.com/ankane/rollbar-r/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/rollbar-r/actions)
## Installation
```r
install.packages("rollbar")
```or if you use [Jetpack](https://github.com/ankane/jetpack), run:
```r
jetpack::add("rollbar")
```## Usage
```r
library(rollbar)rollbar.configure(access_token="secret", env="production")
```Use your `post_server_item` access token
Alternatively, you can set `ROLLBAR_ACCESS_TOKEN` and `R_ENV` in your environment
Report uncaught errors automatically
```r
rollbar.attach()
```Report errors manually
```r
rollbar.error(message)
```Additional methods include
```r
rollbar.info
rollbar.debug
rollbar.warning
rollbar.critical
```Or use the generic method
```r
rollbar.log(level, message)
```Pass extra details
```r
rollbar.info("Job successful", list(job_id=123, awesome="yes"))
```## Contributing
Everyone is encouraged to help improve this project. Here are a few ways you can help:
- [Report bugs](https://github.com/ankane/rollbar-r/issues)
- Fix bugs and [submit pull requests](https://github.com/ankane/rollbar-r/pulls)
- Write, clarify, or fix documentation
- Suggest or add new featuresTo get started with development:
```sh
git clone https://github.com/ankane/rollbar-r.git
cd rollbar-r
```In R, do:
```r
install.packages("devtools")
devtools::install_deps(dependencies=TRUE)
devtools::check()
```