Software
Placeholder

debugme

Easy and efficient debugging for R packages

R

debugme is a lightweight debugging tool for R packages that uses special string literals to add debug messages without function call overhead. You mark debug statements with “!DEBUG” prefixes in your code, then control which packages show debug output by setting the DEBUGME environment variable.

The package has essentially zero performance impact when debugging is disabled because debug strings are just ignored string literals. It supports multiple packages simultaneously with color-coded output for each package, allows embedded R code evaluation within debug messages using backticks, and requires minimal setup - just one .onLoad function in your package. This makes it practical to leave debug statements in production code without worrying about performance penalties.

Contributors