This function wraps usethis'
licenses functions, which are
designed for R-packages. This function makes them applicable to other use
cases (e.g., WORCS projects, FAIR theory).
Arguments
- path
 Character, indicating the directory in which to create the license file. Default: '.'.
- license
 Character, indicating which license function to call. The
usethisfunctions all have the formuse_{licensename}_license(). Thelicenseargument consists only of the{licensename}, e.g.ccby.- ...
 Additional arguments passed to
usethisfunction.
Examples
if(requireNamespace("withr", quietly = TRUE)){
withr::with_tempdir({
add_license_file(path = ".",
                 license = "proprietary",
                 copyright_holder = "test")
})
}
