Output error/warning log (txt file) when running R script under command line

前端 未结 2 1498
借酒劲吻你
借酒劲吻你 2020-12-01 09:49

If I run R script under command line (actually I run that from calling in VBA), how can I output any error/warning messages to a txt file?

2条回答
  •  感情败类
    2020-12-01 10:11

    To close the connection with the log file you have to use sink(type="message") instead of sink() and then close(zz).

提交回复
热议问题