2016-10-11 72 views

回答

2

使用file参数猫:只是更换您的最后一行:

,error=function(e){cat("ERROR :",conditionMessage(e), "\n", file="yourfile.log")}) 

如果你不处理错误回报明确,但要保持你的脚本的运行,你可以使用的整个记录sink功能。