Rscript script.R > script_$(date +'%Y%m%d_%H%M%S').log 2> script_errors_$(date +'%Y%m%d_%H%M%S').log
Although, it puts the errors and output in different files. The timestamps are handy too.
Rscript script.R > script_$(date +'%Y%m%d_%H%M%S').log 2> script_errors_$(date +'%Y%m%d_%H%M%S').log
Although, it puts the errors and output in different files. The timestamps are handy too.