I have followed the instructions available in this website and I managed to create my own default R script for Rstudio. (Basically, I add a list some libraries that I usually use and then load them.) However, I would also like to have in this script a line informing when the file was first created (especifically, something like the result of format(Sys.time(), "%a %b %d %X %Y")
) when I open a new script. Is it possible to do?
(For those who are familiar with the Spyder IDE for Python, you may recall that every new script includes its creation date inside the script. I want something analogous for my R script.)
When I open a new script in Rstudio, I would like to have the date of the creation already in the script, as below:
# -- coding: utf-8 --
# Created on Fri Sep 17 2:07:05 PM 2021
# author: DOS