Unix versions of R CMD BATCH have reported proc.time() unless the script ends in q(). E.g. if the input is 'search()' the output is> invisible(options(echo = TRUE)) > search()[1] ".GlobalEnv" "package:stats" "package:graphics" [4] "package:grDevices" "package:utils" "package:datasets" [7] "package:methods" "Autoloads" "package:base"> > proc.time()[1] 1.053 0.067 1.109 0.000 0.000>This was undocumented, and not shared by the Windows version. Is it useful? Do people want it retained? -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
I rather like it. Patrick Burns patrick at burns-stat.com +44 (0)20 8525 0696 http://www.burns-stat.com (home of S Poetry and "A Guide for the Unwilling S User") Brian Ripley wrote:>Unix versions of R CMD BATCH have reported proc.time() unless the script >ends in q(). E.g. if the input is 'search()' the output is > > > >>invisible(options(echo = TRUE)) >>search() >> >> >[1] ".GlobalEnv" "package:stats" "package:graphics" >[4] "package:grDevices" "package:utils" "package:datasets" >[7] "package:methods" "Autoloads" "package:base" > > >>proc.time() >> >> >[1] 1.053 0.067 1.109 0.000 0.000 > > > >This was undocumented, and not shared by the Windows version. > >Is it useful? >Do people want it retained? > > >
I do find the timing useful and would prefer it to be retained unless it causes a problem elsewhere. -roger Brian Ripley wrote:> Unix versions of R CMD BATCH have reported proc.time() unless the script > ends in q(). E.g. if the input is 'search()' the output is > >> invisible(options(echo = TRUE)) >> search() > [1] ".GlobalEnv" "package:stats" "package:graphics" > [4] "package:grDevices" "package:utils" "package:datasets" > [7] "package:methods" "Autoloads" "package:base" >> proc.time() > [1] 1.053 0.067 1.109 0.000 0.000 > > This was undocumented, and not shared by the Windows version. > > Is it useful? > Do people want it retained? >-- Roger D. Peng | http://www.biostat.jhsph.edu/~rpeng/
I use it a lot. Kasper On Jan 10, 2007, at 5:06 AM, Brian Ripley wrote:> Unix versions of R CMD BATCH have reported proc.time() unless the > script > ends in q(). E.g. if the input is 'search()' the output is > >> invisible(options(echo = TRUE)) >> search() > [1] ".GlobalEnv" "package:stats" "package:graphics" > [4] "package:grDevices" "package:utils" "package:datasets" > [7] "package:methods" "Autoloads" "package:base" >> >> proc.time() > [1] 1.053 0.067 1.109 0.000 0.000 >> > > This was undocumented, and not shared by the Windows version. > > Is it useful? > Do people want it retained? > > -- > Brian D. Ripley, ripley at stats.ox.ac.uk > Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ > University of Oxford, Tel: +44 1865 272861 (self) > 1 South Parks Road, +44 1865 272866 (PA) > Oxford OX1 3TG, UK Fax: +44 1865 272595 > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel
Brian Ripley <ripley <at> stats.ox.ac.uk> writes:> Unix versions of R CMD BATCH have reported proc.time() unless the script > ends in q(). E.g. if the input is 'search()' the output is > > > invisible(options(echo = TRUE)) > > search() > [1] ".GlobalEnv" "package:stats" "package:graphics" > [4] "package:grDevices" "package:utils" "package:datasets" > [7] "package:methods" "Autoloads" "package:base" > > > > proc.time() > [1] 1.053 0.067 1.109 0.000 0.000 > >I did not notice that this is only for unix version of R CMD BATCH. Since R CMD BATCH is prefered way to run things in background and usually for longer time it is good to have this info. I would suggest to add this also in Windows version. Gregor