开发者

How to Stop proc.time being run when exiting R using quit()

开发者 https://www.devze.com 2023-01-12 02:29 出处:网络
I am runn开发者_Python百科ing a Batch file on Windows that runs an Rscript that creates two XML files.

I am runn开发者_Python百科ing a Batch file on Windows that runs an Rscript that creates two XML files. However at the end of the second XML file the following gets appended onto it:

> proc.time()

user  system elapsed 

4.97    0.62    7.78

Is there a way of stopping this from happening?

Regards,

Anthony.


Add q(runLast=FALSE) to your script, or use --no-timing

From the BATCH help file


Possibly -- if you remove the call to proc.time() in your script.

Edit: So so NOT use R CMD BATCH foo.R but rather Rscript foo.R.

0

精彩评论

暂无评论...
验证码 换一张
取 消