Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nfultz/tron
R package for easy logging
https://github.com/nfultz/tron
logging r
Last synced: 3 months ago
JSON representation
R package for easy logging
- Host: GitHub
- URL: https://github.com/nfultz/tron
- Owner: nfultz
- Created: 2015-02-24T22:01:56.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-23T17:18:30.000Z (about 9 years ago)
- Last Synced: 2024-05-01T13:50:54.727Z (9 months ago)
- Topics: logging, r
- Language: R
- Homepage:
- Size: 27.3 KB
- Stars: 40
- Watchers: 7
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 packageIf you would like to add logging to an entire package, tron it before you load it:
tron("ht"); require(ht)