wrap.eval {StabPerf}R Documentation

Evaluates an expression while trapping its output in a file.

Description

Sinks any output of the evaluation of an expression in a log file. Intended for clean remote execution.

Usage

wrap.eval(cmd, sink=TRUE)

Arguments

cmd expression.

Details

Log file is saved under the log directory and is named according to the current hostname and current process ID.

Value

e Result of eval(cmd)

See Also

eval, sink, Sys.info, Sys.getpid

Examples

x <- wrap.eval(parse(text="scary.function()"))

[Package StabPerf version 0.5 Index]