Error tracking for R
install.packages("rollbar")or if you use Jetpack, run:
jetpack::add("rollbar")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
rollbar.attach()Report errors manually
rollbar.error(message)Additional methods include
rollbar.info
rollbar.debug
rollbar.warning
rollbar.criticalOr use the generic method
rollbar.log(level, message)Pass extra details
rollbar.info("Job successful", list(job_id=123, awesome="yes"))Everyone is encouraged to help improve this project. Here are a few ways you can help:
- Report bugs
- Fix bugs and submit pull requests
- Write, clarify, or fix documentation
- Suggest or add new features
To get started with development:
git clone https://github.com/ankane/rollbar-r.git
cd rollbar-rIn R, do:
install.packages("devtools")
devtools::install_deps(dependencies=TRUE)
devtools::check()