Learn R Programming

Rollbar

Error tracking for R

Rollbar website

Installation

install.packages("devtools")
devtools::install_github("ankane/rollbar")

or if you use Jetpack, add to your packages.R

package("rollbar", github="ankane/rollbar")

Usage

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.critical

Or use the generic method

rollbar.log(level, message)

Pass extra details

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:

Copy Link

Version

Install

install.packages('rollbar')

Monthly Downloads

130

Version

0.1.0

License

MIT + file LICENSE

Maintainer

Last Published

May 14th, 2016

Functions in rollbar (0.1.0)

rollbar.configure

Configure the library
rollbar.info

Report info messages
rollbar.log

Report messages
rollbar.warning

Report warnings
rollbar.debug

Report debug messages
rollbar.critical

Report critical errors
rollbar.error

Report errors
rollbar.attach

Attach the global error handler