1- Go to Tools -> Global Options -> Code -> Snippets -> Edit Snippets
.
2- Then paste the following code:
snippet 0bsd
`r paste('# script.R')`
`r paste('#')`
`r paste('# Copyright (c)', format(Sys.time(), "%Y"), '<Your name>')`
`r paste('#')`
`r paste('# This program is free software; you can redistribute it and/or modify')`
`r paste('# it under the terms of the BSD Zero Clause License as published by')`
`r paste('# Rob Landley. See http://spdx.org/licenses/0BSD.html for more details.')`
`r paste('\n')`
To use this snippet in the script type 0bsd
then Shift+Tab
.