[R] Sourcing my file does not print command outputs
jrkrideau at inbox.com
Thu Feb 7 19:57:15 CET 2013
"Note that running code via source differs in a few respects from entering it at the R command line. Since expressions are not executed at the top level, auto-printing is not done. So you will need to include explicit print calls for things you want to be printed"
Kingston ON Canada
> -----Original Message-----
> From: ribonucleico at gmail.com
> Sent: Thu, 7 Feb 2013 13:36:56 -0500
> To: r-help at r-project.org
> Subject: [R] Sourcing my file does not print command outputs
> I looked at the documentation of source() and summary(), and I could not
> find the reason why calling something like:
> from the command line, works (it prints the summary)
> whereas calling
> from a file that I source with source("my_file.r") does not print
> How can I get summary(resamps) to print when I source a file with this
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
More information about the R-help