Show Results of Expression Represented by Text
Evaluate the supplied expression, reflect it on the command line, and show the results of the evaluation.
showRes(x, cr=TRUE, pau=TRUE)
x
: an R expression to evaluatecr
: logical: if TRUE
, introduce extra carriage returnspau
: logical: if TRUE
, pause after expression reflection and executionThe results of the expression are return invisibly.
Jon T. Schnute, Pacific Biological Station, Fisheries and Oceans Canada, Nanaimo BC
local(envir=.PBSmodEnv,expr={ showRes("x=rnorm(100)",pau=FALSE) })