Description Usage Arguments Options Examples
Call .tron.function
on each function in an environment and assign the result back.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## S3 method for class 'character'
.tron(x, logger = getOption("tron.logger", "message"),
verbose = getOption("tron.verbose", FALSE))
## S3 method for class 'character'
.troff(x)
## S3 method for class 'environment'
.tron(x, logger = getOption("tron.logger", "message"),
verbose = getOption("tron.verbose", FALSE))
## S3 method for class 'environment'
.troff(x)
|
x |
an environment or name of namespace; defaults to the |
logger |
a logging function or name of function which accepts |
verbose |
logical, log which functions are detected and modified |
You can set the following default parameters using option
:
name of a logging function
logical
1 2 3 4 | f <- function(a,b) a / b
zzz <- function(x,y) f(x,y) / f(y,x)
tron(environment(), verbose=TRUE)
zzz(2,1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.