Skip to content
R package for easy logging
R C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R Doc updates Dec 23, 2015
man Doc updates Dec 23, 2015
src New method for tracing packages Jun 17, 2015
tests Fixing tests, don't export testing logger for now. Dec 23, 2015
DESCRIPTION Doc updates Dec 23, 2015
NAMESPACE Fixing tests, don't export testing logger for now. Dec 23, 2015
README.md
tron.Rproj Documentation regenerated. bumping version Dec 23, 2015

README.md

tron: Pain Free Logging

This package provides the tron function, which decorates all functions in a session or package to let you follow along with the execution.

Here is an example:

tron> f <- function(a,b) a / b

tron> zzz <- function(x,y) f(x,y) / f(y,x)

tron> tron(environment(), verbose=TRUE)
wrapping  f
wrapping	zzz

tron> zzz(2,1)
2015-02-24 18:55:10	zzz(2, 1) begin
2015-02-24 18:55:10		f(x, y) begin
2015-02-24 18:55:10		f(x, y) end
2015-02-24 18:55:10		f(y, x) begin
2015-02-24 18:55:10		f(y, x) end
2015-02-24 18:55:10	zzz(2, 1) end

Logging a package

If you would like to add logging to an entire package, tron it before you load it:

tron("ht"); require(ht)
You can’t perform that action at this time.