You need to print the result of an expression if used from source().
Autoprinting only occurs at the top level.
E.g.
% cat > systest.R
print(system.time(for(i in 1:100) mad(runif(1000
> source("systest.R")
user system elapsed
0.140.000.20
On Mon, 17 Sep 2007, Leeds, Mark (IE
Try this:
source("myfile.R", echo = TRUE)
On 9/17/07, Leeds, Mark (IED) <[EMAIL PROTECTED]> wrote:
> If I type the line below at my Rprompt, it works fine. But, if I put the
> same line in a file called systest.R and then source that file at
> the prompt, nothing happens. IF I use R CMD BATCH, it
2 matches
Mail list logo