title: Output error/warning log (txt file) when running R script under command line
body: <p>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?</p>