update_license: Update copyright year in the license

View source: R/update_license.R

update_licenseR Documentation

Update copyright year in the license

Description

Update copyright year in the LICENSE file. The copyright years are given as a range from the first year to the current year.

Usage

update_license(
  pkg = stringi::stri_extract_last_words(usethis::proj_path()),
  pkg_path = usethis::proj_path(),
  copyright_owner = "Norwegian Veterinary Institute"
)

Arguments

pkg

[character(1)]
The package name. Defaults to stringi::stri_extract_last_words(usethis::proj_path()).

pkg_path

[character(1)]
The path to the package directory. Defaults to usethis::proj_path().

copyright_owner

[character(1)]
The copyright owner in the copyright statement. Defaults to "Norwegian Veterinary Institute".

Details

The copyright years will only be updated for the given copyright owner This to avoid that copyright for other copyright owners are updated if more than one.

Value

None. Writes the LICENSE file.

Author(s)

Petter Hopp Petter.Hopp@vetinst.no

Examples

## Not run: 
# Used when are in the package directory
update_license()

## End(Not run)


PetterHopp/NVIpackager documentation built on Sept. 14, 2024, 1:24 a.m.