Skip to content
Prev 124747 / 398498 Next

system.time behavior using source

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))))
user  system elapsed
    0.14    0.00    0.20
On Mon, 17 Sep 2007, Leeds, Mark (IED) wrote: