R/data.R

#' Mapping between `License` fields and SPDX
#'
#' A dataset containing the mapping between the `License` strings observed
#' on CRAN packages and its (approximate) match on the
#' [SPDX License List](https://spdx.org/licenses/).
#'
#' @family datasets
#'
#' @format A data frame with `r nrow(cran_to_spdx)` rows and 2 variables:
#'
#'  * `r names(cran_to_spdx)[1]`: A valid `License` string on CRAN.
#'  * `r names(cran_to_spdx)[2]`. A valid SPDX License Identifier.
#'
#' @seealso *Writing R Extensions*,
#' ```{r, echo=FALSE, results='asis'}
#'
#' cat(paste0(" [Licensing section]",
#'            "(https://cran.r-project.org/doc/manuals/",
#'            "r-release/R-exts.html#Licensing)."))
#'
#' ```
#'
#' @source <https://spdx.org/licenses/>
#'
#' @examples
#'
#' data("cran_to_spdx")
#'
#' head(cran_to_spdx, 20)
"cran_to_spdx"

Try the cffr package in your browser

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

cffr documentation built on Sept. 11, 2024, 8:41 p.m.