If you are writing code to execute unattended (with no user interaction), then you should also include proper error handling and logging in it. That way you have a log to examine to see what the script did. The time it started, the time it ended, any errors that it encountered, key data points like the number of records it processed, etc, etc.
Forum users have no idea what your script is doing or what errors it might encounter.
If "R" is a console based application (not a GUI), then also capture stdout and stderr.