add_license | R Documentation |
This function adds a license to the project. It will add the license name
in the License
field of the DESCRIPTION
file and write the content of
the license in the License.md
file.
add_license(license = NULL, given = NULL, family = NULL, quiet = FALSE)
license |
A character of length 1. The chosen license.
Run |
given |
A character of length 1. The given name of the copyright holder.
Only required if |
family |
A character of length 1. The family name of the copyright
holder. Only required if |
quiet |
A logical value. If |
No return value.
Other create files:
add_citation()
,
add_code_of_conduct()
,
add_compendium()
,
add_contributing()
,
add_description()
,
add_dockerfile()
,
add_makefile()
,
add_package_doc()
,
add_readme_rmd()
,
add_renv()
,
add_testthat()
,
add_vignette()
## Not run:
add_license(license = "MIT")
add_license(license = "GPL (>= 2)")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.