开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜