Skip to content
Advertisement

Add timestamp to R CMD BATCH outfile name

I want to run a script, and name the outfile. The default looks like this:

JavaScript

How do I add a timestamp to the name?

Something like this:

JavaScript

Advertisement

Answer

Couldn’t show backticks in the comments, see below:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement