scrpthdrs
provides a very basic way to quickly insert a comment header at the top of an R script.
You can install the development version of scrpthdrs from GitHub with:
devtools::install_github("PhilippBaessler/scrpthdrs")
The package provides a basic GUI via an RStudio Addin. It can be found in Addins ➔ scrpthdrs
/ Insert comment header
Alternatively, the function can be called directly in the console assuming the R script file to which the comment header shall be added is open and focused in RStudio:
scrpthdrs::insert_comment_header(author = "My Name", email = "[email protected]")