I am writing an R script whose contents may change from time to time. It would be very helpful if I could insert a command that would copy the current contents of the script into a file, so I can come back later and see what commands I executed during this code run.
How can i do this?
source
share