R/get_licenses.R

Defines functions get_licenses

Documented in get_licenses

#' List all available licenses
#' 
#' @description
#' This function returns a list of all available licenses. This is particularly
#' useful to get the right spelling of the license to be passed to 
#' [new_package()], [new_compendium()], or [add_license()].
#' 
#' @return A `data.frame` with the following two variables: 
#' * `tag`, the license name to be used with [add_license()];
#' * `url`, the URL of the license description.
#' 
#' @export
#' 
#' @family utilities functions
#'
#' @examples
#' get_licenses()

get_licenses <- function() licenses[ , c("tag", "url")]

Try the rcompendium package in your browser

Any scripts or data that you put into this service are public.

rcompendium documentation built on Oct. 26, 2023, 5:08 p.m.