Add the boilerplate Apache header to the top of a source code file

add_license_header(
  file,
  year = format(Sys.Date(), "%Y"),
  copyright_holder = "Province of British Columbia",
  copyright_modifier = "Tim Foster"
)

Arguments

file

Path to the file

year

The year the license should apply (Default current year)

copyright_holder

Copyright holder (Default "Province of British Columbia")

copyright_modifier

Name of modifier (Default "Tim Foster")