Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

r-lib/tracer

 
 

Repository files navigation

tracer

Slick Call Stacks

Project Status: Active - The project has reached a stable, usable state and is being actively developed. Linux Build Status Windows Build status CRAN RStudio mirror downloads Coverage Status

Better looking call stacks after an error.

Installation

install.packages("tracer")

Usage

library(tracer)

After an error, call tb() instead of traceback(), to get a nice error stack summary:

To browse the code at the locations of the calls, supply the number of the call to tb():

Note that tracer can often show the (deparsed) source code of the call location, even if the original R source code is no more available, like in the case of installed packages.

Caveat

tracer sets the error handler via options(error = ...). If the user changes the error handler manually, then tracer will not work.

License

MIT © Mango Solutions, Gábor Csárdi, RStudio Inc.

About

Slick call stack traces

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 99.5%
  • Makefile 0.5%