r - Why does sourcing a script not print out to stdout? -
in r session, source simple r script content is:
x = c(1,2) x as
source('my.r') i wonder why running in r session doesn't show output?
(i find can use print() show value of x.)
thanks.
it way source configured. can change options echo , print.eval:
echological; if true, each expression printed after parsing, before evaluation.
print.evallogical; if true, result of eval(i) printed each expression i; defaults value of echo.
so try source("my.r", print.eval=true)
Comments
Post a Comment