From e7331cdf632b8385c8a66049501a681236977eb8 Mon Sep 17 00:00:00 2001 From: dieghernan Date: Tue, 23 Jul 2024 08:47:32 +0000 Subject: [PATCH] Start preparing release --- .github/workflows/rhub.yaml | 95 +++++++++ CITATION.cff | 5 +- DESCRIPTION | 2 +- NEWS.md | 3 +- R/cff.R | 4 +- R/deprecated.R | 18 +- README.Rmd | 1 + README.md | 9 +- codemeta.json | 6 +- data-raw/cran_licenses.csv | 56 +++-- data-raw/cran_licenses_mapped.csv | 187 ++++++++--------- data-raw/cran_to_spdx.R | 74 ++++++- data/cran_to_spdx.rda | Bin 916 -> 912 bytes inst/extdata/cran_licenses.csv | 326 +++++++++++++++--------------- inst/schemaorg.json | 4 +- man/cff_class.Rd | 4 +- man/cran_to_spdx.Rd | 2 +- 17 files changed, 480 insertions(+), 316 deletions(-) create mode 100644 .github/workflows/rhub.yaml diff --git a/.github/workflows/rhub.yaml b/.github/workflows/rhub.yaml new file mode 100644 index 00000000..74ec7b05 --- /dev/null +++ b/.github/workflows/rhub.yaml @@ -0,0 +1,95 @@ +# R-hub's generic GitHub Actions workflow file. It's canonical location is at +# https://github.com/r-hub/actions/blob/v1/workflows/rhub.yaml +# You can update this file to a newer version using the rhub2 package: +# +# rhub::rhub_setup() +# +# It is unlikely that you need to modify this file manually. + +name: R-hub +run-name: "${{ github.event.inputs.id }}: ${{ github.event.inputs.name || format('Manually run by {0}', github.triggering_actor) }}" + +on: + workflow_dispatch: + inputs: + config: + description: 'A comma separated list of R-hub platforms to use.' + type: string + default: 'linux,windows,macos' + name: + description: 'Run name. You can leave this empty now.' + type: string + id: + description: 'Unique ID. You can leave this empty now.' + type: string + +jobs: + + setup: + runs-on: ubuntu-latest + outputs: + containers: ${{ steps.rhub-setup.outputs.containers }} + platforms: ${{ steps.rhub-setup.outputs.platforms }} + + steps: + # NO NEED TO CHECKOUT HERE + - uses: r-hub/actions/setup@v1 + with: + config: ${{ github.event.inputs.config }} + id: rhub-setup + + linux-containers: + needs: setup + if: ${{ needs.setup.outputs.containers != '[]' }} + runs-on: ubuntu-latest + name: ${{ matrix.config.label }} + strategy: + fail-fast: false + matrix: + config: ${{ fromJson(needs.setup.outputs.containers) }} + container: + image: ${{ matrix.config.container }} + + steps: + - uses: r-hub/actions/checkout@v1 + - uses: r-hub/actions/platform-info@v1 + with: + token: ${{ secrets.RHUB_TOKEN }} + job-config: ${{ matrix.config.job-config }} + - uses: r-hub/actions/setup-deps@v1 + with: + token: ${{ secrets.RHUB_TOKEN }} + job-config: ${{ matrix.config.job-config }} + - uses: r-hub/actions/run-check@v1 + with: + token: ${{ secrets.RHUB_TOKEN }} + job-config: ${{ matrix.config.job-config }} + + other-platforms: + needs: setup + if: ${{ needs.setup.outputs.platforms != '[]' }} + runs-on: ${{ matrix.config.os }} + name: ${{ matrix.config.label }} + strategy: + fail-fast: false + matrix: + config: ${{ fromJson(needs.setup.outputs.platforms) }} + + steps: + - uses: r-hub/actions/checkout@v1 + - uses: r-hub/actions/setup-r@v1 + with: + job-config: ${{ matrix.config.job-config }} + token: ${{ secrets.RHUB_TOKEN }} + - uses: r-hub/actions/platform-info@v1 + with: + token: ${{ secrets.RHUB_TOKEN }} + job-config: ${{ matrix.config.job-config }} + - uses: r-hub/actions/setup-deps@v1 + with: + job-config: ${{ matrix.config.job-config }} + token: ${{ secrets.RHUB_TOKEN }} + - uses: r-hub/actions/run-check@v1 + with: + job-config: ${{ matrix.config.job-config }} + token: ${{ secrets.RHUB_TOKEN }} diff --git a/CITATION.cff b/CITATION.cff index 0be9ddbe..2d9289e8 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -8,7 +8,7 @@ message: 'To cite package "cffr" in publications use:' type: software license: GPL-3.0-or-later title: 'cffr: Generate Citation File Format (''cff'') Metadata for R Packages' -version: 1.0.1.9000 +version: 1.1.0 doi: 10.21105/joss.03900 identifiers: - type: doi @@ -143,6 +143,9 @@ references: email: jeroen@berkeley.edu orcid: https://orcid.org/0000-0002-4035-0289 year: '2024' + identifiers: + - type: url + value: https://arxiv.org/abs/1403.2805 doi: 10.32614/CRAN.package.jsonlite version: '>= 1.7.2' - type: software diff --git a/DESCRIPTION b/DESCRIPTION index 106c5bb1..cf64c614 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: cffr Title: Generate Citation File Format ('cff') Metadata for R Packages -Version: 1.0.1.9000 +Version: 1.1.0 Authors@R: c( person("Diego", "Hernangómez", , "diego.hernangomezherrero@gmail.com", role = c("aut", "cre", "cph"), comment = c(ORCID = "0000-0001-8457-4658")), diff --git a/NEWS.md b/NEWS.md index 31053315..e63b3f9a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# cffr (development version) +# cffr 1.1.0 - Now **cffr** adds automatically dois to packages on **CRAN** (e.g. ): @@ -10,6 +10,7 @@ the package dependency is on **CRAN**, the **CRAN** doi would be used for the dependency in the `references` key. - Extract `commit` from `RemoteSha`. +- Update `cran_to_spdx` dataset. # cffr 1.0.1 diff --git a/R/cff.R b/R/cff.R index c3b4fd81..e50326ce 100644 --- a/R/cff.R +++ b/R/cff.R @@ -64,10 +64,10 @@ cff <- function(path, ...) { if (!missing(path)) { src <- detect_x_source(path) if (src == "cff_citation") { - lifecycle::deprecate_soft("1.0.0", "cff(path)", "cff_read_cff_citation()") + lifecycle::deprecate_warn("1.0.0", "cff(path)", "cff_read_cff_citation()") return(cff_read_cff_citation(path)) } else { - lifecycle::deprecate_soft("1.0.0", "cff(path)", + lifecycle::deprecate_warn("1.0.0", "cff(path)", details = "Argument ignored." ) } diff --git a/R/deprecated.R b/R/deprecated.R index b2745341..cffc7421 100644 --- a/R/deprecated.R +++ b/R/deprecated.R @@ -23,7 +23,7 @@ cff_extract_to_bibtex <- function(x, what = c("preferred", "references", "all")) { if (requireNamespace("lifecycle", quietly = TRUE)) { - lifecycle::deprecate_soft( + lifecycle::deprecate_warn( "0.5.0", "cff_extract_to_bibtex()", details = "Function renamed, use `as_bibentry()` instead." ) @@ -37,7 +37,7 @@ cff_extract_to_bibtex <- function(x, cff_to_bibtex <- function(x, what = c("preferred", "references", "all")) { if (requireNamespace("lifecycle", quietly = TRUE)) { - lifecycle::deprecate_soft( + lifecycle::deprecate_warn( "1.0.0", "cff_extract_to_bibtex()", details = "Function renamed, use `as_bibentry()` instead." ) @@ -103,7 +103,7 @@ cff_to_bibtex <- function(x, cff_from_bibtex <- function(x, encoding = "UTF-8", ...) { if (length(x) == 1 && file_exist_abort(x)) { if (requireNamespace("lifecycle", quietly = TRUE)) { - lifecycle::deprecate_soft( + lifecycle::deprecate_warn( "1.0.0", "cff_from_bibtex()", "cff_read_bib()" ) } @@ -113,7 +113,7 @@ cff_from_bibtex <- function(x, encoding = "UTF-8", ...) { } if (requireNamespace("lifecycle", quietly = TRUE)) { - lifecycle::deprecate_soft( + lifecycle::deprecate_warn( "1.0.0", "cff_from_bibtex()", "cff_read_bib_text()" ) } @@ -162,7 +162,7 @@ write_bib <- function(x, verbose = TRUE, ascii = FALSE) { if (requireNamespace("lifecycle", quietly = TRUE)) { - lifecycle::deprecate_soft( + lifecycle::deprecate_warn( "1.0.0", "write_bib()", "cff_write_bib()" ) } @@ -178,7 +178,7 @@ write_citation <- function(x, verbose = TRUE, ...) { if (requireNamespace("lifecycle", quietly = TRUE)) { - lifecycle::deprecate_soft( + lifecycle::deprecate_warn( "1.0.0", "write_citation()", "cff_write_citation()" ) } @@ -245,7 +245,7 @@ write_citation <- function(x, #' as_cff_person("Herbert von Karajan") cff_parse_person <- function(person) { if (requireNamespace("lifecycle", quietly = TRUE)) { - lifecycle::deprecate_soft( + lifecycle::deprecate_warn( "1.0.0", "cff_parse_person()", "as_cff_person()" ) } @@ -257,7 +257,7 @@ cff_parse_person <- function(person) { #' cff_parse_person_bibtex <- function(person) { if (requireNamespace("lifecycle", quietly = TRUE)) { - lifecycle::deprecate_soft( + lifecycle::deprecate_warn( "1.0.0", "cff_parse_person_bibtex()", "as_cff_person()" ) } @@ -292,7 +292,7 @@ cff_parse_person_bibtex <- function(person) { #' cff_parse_citation <- function(bib) { if (requireNamespace("lifecycle", quietly = TRUE)) { - lifecycle::deprecate_soft( + lifecycle::deprecate_warn( "1.0.0", "cff_parse_citation()", "as_cff.bibentry()" ) } diff --git a/README.Rmd b/README.Rmd index e818989c..6b53a895 100644 --- a/README.Rmd +++ b/README.Rmd @@ -23,6 +23,7 @@ knitr::opts_chunk$set( [![CRAN-results](https://badges.cranchecks.info/worst/cffr.svg)](https://cran.r-project.org/web/checks/check_results_cffr.html) [![Downloads](https://cranlogs.r-pkg.org/badges/grand-total/cffr?color=blue)](https://cran.r-project.org/package=cffr) [![R-CMD-check](https://github.com/ropensci/cffr/actions/workflows/check-full.yaml/badge.svg)](https://github.com/ropensci/cffr/actions/workflows/check-full.yaml) +[![R-hub](https://github.com/ropensci/cffr/actions/workflows/rhub.yaml/badge.svg)](https://github.com/ropensci/cffr/actions/workflows/rhub.yaml) [![codecov](https://codecov.io/gh/ropensci/cffr/branch/main/graph/badge.svg?token=YRO3XL8RWK)](https://app.codecov.io/gh/ropensci/cffr) [![r-universe](https://ropensci.r-universe.dev/badges/cffr)](https://ropensci.r-universe.dev/cffr) [![CITATION-cff](https://github.com/ropensci/cffr/actions/workflows/cff-validator.yml/badge.svg)](https://github.com/ropensci/cffr/actions/workflows/cff-validator.yml) diff --git a/README.md b/README.md index f450fa92..f89cdecd 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ [![CRAN-results](https://badges.cranchecks.info/worst/cffr.svg)](https://cran.r-project.org/web/checks/check_results_cffr.html) [![Downloads](https://cranlogs.r-pkg.org/badges/grand-total/cffr?color=blue)](https://cran.r-project.org/package=cffr) [![R-CMD-check](https://github.com/ropensci/cffr/actions/workflows/check-full.yaml/badge.svg)](https://github.com/ropensci/cffr/actions/workflows/check-full.yaml) +[![R-hub](https://github.com/ropensci/cffr/actions/workflows/rhub.yaml/badge.svg)](https://github.com/ropensci/cffr/actions/workflows/rhub.yaml) [![codecov](https://codecov.io/gh/ropensci/cffr/branch/main/graph/badge.svg?token=YRO3XL8RWK)](https://app.codecov.io/gh/ropensci/cffr) [![r-universe](https://ropensci.r-universe.dev/badges/cffr)](https://ropensci.r-universe.dev/cffr) [![CITATION-cff](https://github.com/ropensci/cffr/actions/workflows/cff-validator.yml/badge.svg)](https://github.com/ropensci/cffr/actions/workflows/cff-validator.yml) @@ -72,7 +73,7 @@ file and the `CITATION` file (if present) of your package. Note that **cffr** works best if your package pass `R CMD check/devtools::check()`. -As per 2024-07-19 there are at least 288 repos on GitHub using **cffr**. +As per 2024-07-23 there are at least 290 repos on GitHub using **cffr**. [Check them out here](https://github.com/search?q=cffr%20path%3A**%2FCITATION.cff&type=code). @@ -393,6 +394,9 @@ test <- cff_create("rmarkdown") email: jeroen@berkeley.edu orcid: https://orcid.org/0000-0002-4035-0289 year: '2024' + identifiers: + - type: url + value: https://arxiv.org/abs/1403.2805 doi: 10.32614/CRAN.package.jsonlite - type: software title: knitr @@ -933,8 +937,7 @@ for more info. ## References -
+
diff --git a/codemeta.json b/codemeta.json index 9c87bba6..ca1f328c 100644 --- a/codemeta.json +++ b/codemeta.json @@ -8,13 +8,13 @@ "codeRepository": "https://github.com/ropensci/cffr", "issueTracker": "https://github.com/ropensci/cffr/issues", "license": "https://spdx.org/licenses/GPL-3.0", - "version": "1.0.1.9000", + "version": "1.1.0", "programmingLanguage": { "@type": "ComputerLanguage", "name": "R", "url": "https://r-project.org" }, - "runtimePlatform": "R version 4.4.1 (2024-06-14 ucrt)", + "runtimePlatform": "R version 4.4.1 (2024-06-14)", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", @@ -200,7 +200,7 @@ }, "isPartOf": "https://ropensci.org", "keywords": ["attribution", "citation", "credit", "citation-files", "cff", "metadata", "r", "r-package", "citation-file-format", "rstats", "ropensci", "cran"], - "fileSize": "1629.12KB", + "fileSize": "1604.564KB", "citation": [ { "@type": "ScholarlyArticle", diff --git a/data-raw/cran_licenses.csv b/data-raw/cran_licenses.csv index 6a8b3477..641395b5 100644 --- a/data-raw/cran_licenses.csv +++ b/data-raw/cran_licenses.csv @@ -1,43 +1,42 @@ "LICENSE" "ACM" "AGPL" -"AGPL-3" "AGPL (>= 3)" +"AGPL-3" "Apache License" -"Apache License (== 2)" "Apache License (== 2.0)" -"Apache License (>= 2)" +"Apache License (== 2)" "Apache License (>= 2.0)" +"Apache License (>= 2)" "Apache License 2.0" "Apache License Version 2.0" -"Artistic-2.0" "Artistic License 2.0" +"Artistic-2.0" "BSD 2-clause License" "BSD 3-clause License" "BSD_2_clause" "BSD_3_clause" "BSL" "BSL-1.0" -"CC BY-NC-SA 4.0" +"CC BY 4.0" "CC BY-NC 4.0" +"CC BY-NC-SA 4.0" "CC BY-SA 4.0" -"CC BY 4.0" "CC0" "CeCILL" -"CeCILL-2" "CeCILL (>= 2)" +"CeCILL-2" +"CECILL-2.1" "Common Public License Version 1.0" -"CPL-1.0" "CPL (>= 2)" +"CPL-1.0" "Creative Commons Attribution 4.0 International License" "EPL" -"EPL (>= 1.0)" "EUPL" -"EUPL-1.1" -"EUPL (== 1.1)" +"EUPL (>= 1.1)" "EUPL (>= 1.2)" +"EUPL-1.1" "FreeBSD" -"GNU Affero General Public License" "GNU General Public License" "GNU General Public License (>= 2)" "GNU General Public License (>= 3)" @@ -45,37 +44,34 @@ "GNU General Public License version 3" "GNU Lesser General Public License" "GPL" -"GPL-2" -"GPL-3" -"GPL (<= 2)" "GPL (<= 2.0)" +"GPL (<= 2)" "GPL (== 2)" +"GPL (== 3.0)" "GPL (> 2)" "GPL (> 3)" -"GPL (>= 1.0)" -"GPL (>= 2)" "GPL (>= 2.0)" "GPL (>= 2.1)" "GPL (>= 2.10)" -"GPL (>= 2.15)" "GPL (>= 2.15.1)" -"GPL (>= 2.2)" -"GPL (>= 3)" -"GPL (>= 3.0)" +"GPL (>= 2)" "GPL (>= 3.0.0)" +"GPL (>= 3.0)" "GPL (>= 3.2)" "GPL (>= 3.3.2)" "GPL (>= 3.5.0)" +"GPL (>= 3)" +"GPL-2" +"GPL-3" "LGPL" -"LGPL-2" -"LGPL-2.1" -"LGPL-3" -"LGPL (>= 2)" -"LGPL (>= 2.0)" "LGPL (>= 2.0, < 3)" +"LGPL (>= 2.0)" "LGPL (>= 2.1)" +"LGPL (>= 2)" "LGPL (>= 3)" -"LGPL (>= 3.0)" +"LGPL-2" +"LGPL-2.1" +"LGPL-3" "Lucent Public License" "MIT" "MIT License" @@ -84,9 +80,9 @@ "Mozilla Public License 2.0" "Mozilla Public License Version 2.0" "MPL" -"MPL-1.1" -"MPL-2.0" "MPL (== 2.0)" -"MPL (>= 2)" "MPL (>= 2.0)" +"MPL (>= 2)" +"MPL-1.1" +"MPL-2.0" "Unlimited" diff --git a/data-raw/cran_licenses_mapped.csv b/data-raw/cran_licenses_mapped.csv index 4f980262..a9ba2742 100644 --- a/data-raw/cran_licenses_mapped.csv +++ b/data-raw/cran_licenses_mapped.csv @@ -1,92 +1,95 @@ -LICENSE;SPDX -ACM; -AGPL;AGPL-1.0-only -AGPL-3;AGPL-3.0-only -AGPL (>= 3);AGPL-3.0-or-later -Apache License;Apache-1.0 -Apache License (== 2);Apache-2.0 -Apache License (== 2.0);Apache-2.0 -Apache License (>= 2);Apache-2.0 -Apache License (>= 2.0);Apache-2.0 -Apache License 2.0;Apache-2.0 -Apache License Version 2.0;Apache-2.0 -Artistic-2.0;Artistic-2.0 -Artistic License 2.0;Artistic-2.0 -BSD 2-clause License;BSD-2-Clause -BSD 3-clause License;BSD-3-Clause -BSD_2_clause;BSD-2-Clause -BSD_3_clause;BSD-3-Clause -BSL;BSL-1.0 -BSL-1.0;BSL-1.0 -CC BY-NC-SA 4.0;CC-BY-NC-SA-4.0 -CC BY-NC 4.0;CC-BY-NC-4.0 -CC BY-SA 4.0;CC-BY-SA-4.0 -CC BY 4.0;CC-BY-4.0 -CC0;CC0-1.0 -CeCILL;CECILL-1.0 -CeCILL-2;CECILL-2.0 -CeCILL (>= 2);CECILL-2.0 -Common Public License Version 1.0;CPL-1.0 -CPL-1.0;CPL-1.0 -CPL (>= 2);CPL-1.0 -Creative Commons Attribution 4.0 International License;CC-BY-4.0 -EPL;EPL-1.0 -EPL (>= 1.0);EPL-1.0 -EUPL;EUPL-1.0 -EUPL-1.1;EUPL-1.1 -EUPL (== 1.1);EUPL-1.1 -EUPL (>= 1.2);EUPL-1.2 -FreeBSD;BSD-2-Clause-FreeBSD -GNU Affero General Public License;GPL-1.0-only -GNU General Public License;GPL-1.0-only -GNU General Public License (>= 2);GPL-2.0-or-later -GNU General Public License (>= 3);GPL-3.0-or-later -GNU General Public License version 2;GPL-2.0-only -GNU General Public License version 3;GPL-3.0-only -GNU Lesser General Public License;LGPL-2.1-only -GPL;GPL-1.0-only -GPL-2;GPL-2.0-only -GPL-3;GPL-3.0-only -GPL (<= 2);GPL-2.0-only -GPL (<= 2.0);GPL-2.0-only -GPL (== 2);GPL-2.0-only -GPL (> 2);GPL-2.0-or-later -GPL (> 3);GPL-3.0-or-later -GPL (>= 1.0);GPL-1.0-or-later -GPL (>= 2);GPL-2.0-or-later -GPL (>= 2.0);GPL-2.0-or-later -GPL (>= 2.1);GPL-2.0-or-later -GPL (>= 2.10);GPL-2.0-or-later -GPL (>= 2.15);GPL-2.0-or-later -GPL (>= 2.15.1);GPL-2.0-or-later -GPL (>= 2.2);GPL-2.0-or-later -GPL (>= 3);GPL-3.0-or-later -GPL (>= 3.0);GPL-3.0-or-later -GPL (>= 3.0.0);GPL-3.0-or-later -GPL (>= 3.2);GPL-3.0-or-later -GPL (>= 3.3.2);GPL-3.0-or-later -GPL (>= 3.5.0);GPL-3.0-or-later -LGPL;LGPL-2.0-only -LGPL-2;LGPL-2.0-only -LGPL-2.1;LGPL-2.0-only -LGPL-3;LGPL-3.0-only -LGPL (>= 2);LGPL-2.0-or-later -LGPL (>= 2.0);LGPL-2.0-or-later -LGPL (>= 2.0, < 3);LGPL-2.0-or-later -LGPL (>= 2.1);LGPL-2.0-or-later -LGPL (>= 3);LGPL-3.0-or-later -LGPL (>= 3.0);LGPL-3.0-or-later -Lucent Public License;LPL-1.0 -MIT;MIT -MIT License;MIT -Mozilla Public License;MPL-1.0 -Mozilla Public License 1.1;MPL-1.1 -Mozilla Public License 2.0;MPL-2.0 -Mozilla Public License Version 2.0;MPL-2.0 -MPL;MPL-1.0 -MPL-1.1;MPL-1.1 -MPL-2.0;MPL-2.0 -MPL (== 2.0);MPL-2.0 -MPL (>= 2);MPL-2.0 -MPL (>= 2.0);MPL-2.0 -Unlimited; +LICENSE;SPDX +ACM; +AGPL;AGPL-1.0-only +AGPL (>= 3);AGPL-3.0-or-later +AGPL-3;AGPL-3.0-only +Apache License;Apache-1.0 +Apache License (== 2);Apache-2.0 +Apache License (== 2.0);Apache-2.0 +Apache License (>= 2);Apache-2.0 +Apache License (>= 2.0);Apache-2.0 +Apache License 2.0;Apache-2.0 +Apache License Version 2.0;Apache-2.0 +Artistic License 2.0;Artistic-2.0 +Artistic-2.0;Artistic-2.0 +BSD 2-clause License;BSD-2-Clause +BSD 3-clause License;BSD-3-Clause +BSD_2_clause;BSD-2-Clause +BSD_3_clause;BSD-3-Clause +BSL;BSL-1.0 +BSL-1.0;BSL-1.0 +CC BY 4.0;CC-BY-4.0 +CC BY-NC 4.0;CC-BY-NC-4.0 +CC BY-NC-SA 4.0;CC-BY-NC-SA-4.0 +CC BY-SA 4.0;CC-BY-SA-4.0 +CC0;CC0-1.0 +CeCILL;CECILL-1.0 +CeCILL (>= 2);CECILL-2.0 +CeCILL-2;CECILL-2.0 +CECILL-2.1;CECILL-2.1 +Common Public License Version 1.0;CPL-1.0 +CPL (>= 2);CPL-1.0 +CPL-1.0;CPL-1.0 +Creative Commons Attribution 4.0 International License;CC-BY-4.0 +EPL;EPL-1.0 +EPL (>= 1.0);EPL-1.0 +EUPL;EUPL-1.0 +EUPL (== 1.1);EUPL-1.1 +EUPL (>= 1.1);EUPL-1.1 +EUPL (>= 1.2);EUPL-1.2 +EUPL-1.1;EUPL-1.1 +FreeBSD;BSD-2-Clause-FreeBSD +GNU Affero General Public License;GPL-1.0-only +GNU General Public License;GPL-1.0-only +GNU General Public License (>= 2);GPL-2.0-or-later +GNU General Public License (>= 3);GPL-3.0-or-later +GNU General Public License version 2;GPL-2.0-only +GNU General Public License version 3;GPL-3.0-only +GNU Lesser General Public License;LGPL-2.1-only +GPL;GPL-1.0-only +GPL (<= 2);GPL-2.0-only +GPL (<= 2.0);GPL-2.0-only +GPL (== 2);GPL-2.0-only +GPL (== 3.0);GPL-3.0-only +GPL (> 2);GPL-2.0-or-later +GPL (> 3);GPL-3.0-or-later +GPL (>= 1.0);GPL-1.0-or-later +GPL (>= 2);GPL-2.0-or-later +GPL (>= 2.0);GPL-2.0-or-later +GPL (>= 2.1);GPL-2.0-or-later +GPL (>= 2.10);GPL-2.0-or-later +GPL (>= 2.15);GPL-2.0-or-later +GPL (>= 2.15.1);GPL-2.0-or-later +GPL (>= 2.2);GPL-2.0-or-later +GPL (>= 3);GPL-3.0-or-later +GPL (>= 3.0);GPL-3.0-or-later +GPL (>= 3.0.0);GPL-3.0-or-later +GPL (>= 3.2);GPL-3.0-or-later +GPL (>= 3.3.2);GPL-3.0-or-later +GPL (>= 3.5.0);GPL-3.0-or-later +GPL-2;GPL-2.0-only +GPL-3;GPL-3.0-only +LGPL;LGPL-2.0-only +LGPL (>= 2);LGPL-2.0-or-later +LGPL (>= 2.0);LGPL-2.0-or-later +LGPL (>= 2.0, < 3);LGPL-2.0-or-later +LGPL (>= 2.1);LGPL-2.0-or-later +LGPL (>= 3);LGPL-3.0-or-later +LGPL (>= 3.0);LGPL-3.0-or-later +LGPL-2;LGPL-2.0-only +LGPL-2.1;LGPL-2.0-only +LGPL-3;LGPL-3.0-only +Lucent Public License;LPL-1.0 +MIT;MIT +MIT License;MIT +Mozilla Public License;MPL-1.0 +Mozilla Public License 1.1;MPL-1.1 +Mozilla Public License 2.0;MPL-2.0 +Mozilla Public License Version 2.0;MPL-2.0 +MPL;MPL-1.0 +MPL (== 2.0);MPL-2.0 +MPL (>= 2);MPL-2.0 +MPL (>= 2.0);MPL-2.0 +MPL-1.1;MPL-1.1 +MPL-2.0;MPL-2.0 +Unlimited; diff --git a/data-raw/cran_to_spdx.R b/data-raw/cran_to_spdx.R index 359fe7ca..28c25a9a 100644 --- a/data-raw/cran_to_spdx.R +++ b/data-raw/cran_to_spdx.R @@ -1,12 +1,13 @@ ## code to prepare `cran_to_spdx` dataset goes here -# Run on 2021-10-13 +# Run on 2024-07-23 library(ggplot2) library(dplyr) cran_packs <- as.data.frame(table(available.packages()[, "License"])) %>% arrange(desc(Freq)) %>% - select(LICENSE = Var1, n = Freq) + select(LICENSE = Var1, n = Freq) %>% + as_tibble() # Add % cran_packs$perc <- 100 * round(cran_packs$n / sum(cran_packs$n), 6) @@ -53,6 +54,8 @@ write.csv2(all_licenses, row.names = FALSE ) + + # Map manually on csv # Once it is done, write to inst/extdata @@ -62,8 +65,75 @@ cran_to_spdx <- read.csv2("data-raw/cran_licenses_mapped.csv") # Check cran_to_spdx %>% filter(!(LICENSE %in% all_licenses$LICENSE)) +# Check on validator +validator <- jsonlite::read_json("inst/schema/schema.json") + +licenses <- validator$definitions$`license-enum`$enum %>% unlist() + +cran_to_spdx %>% filter(!(SPDX %in% licenses)) + + + + + +# Summary CRAN +mymap <- as.character(cran_packs$LICENSE) + + + +devtools::load_all() + +themap <- lapply(mymap, function(x) { + message(x) + + licenses <- as.character(x) + + # The schema only accepts two LiCENSES max + + licenses <- unlist(strsplit(licenses, "\\| "))[1:2] + + # Clean up and split + split <- unlist(strsplit(licenses, " \\+ |\\+")) + + # Clean leading and trailing blanks + split <- unique(trimws(split)) + + licenses_df <- data.frame(LICENSE = split) + + # Read mapping + + # Merge + licenses_df <- merge(licenses_df, cran_to_spdx) + + # Clean results + licenses_list <- lapply(licenses_df$SPDX, clean_str) + licenses_list <- drop_null(licenses_list) + + license_char <- unlist(licenses_list) + + !is.null(license_char) +}) %>% unlist() + + + + +mapped_end <- cran_packs +mapped_end$captured <- themap + +mapped_end %>% + group_by(captured) %>% + summarise(n = sum(n)) %>% + mutate(porc = n / sum(n)) + +# Which packages I can't capture? + +cran_db <- as.data.frame(available.packages()) %>% + as_tibble() %>% + mutate(LICENSE = License) %>% + inner_join(mapped_end %>% filter(!captured)) +cran_db[, c("Package", "License")] %>% as.data.frame() usethis::use_data(cran_to_spdx, overwrite = TRUE) diff --git a/data/cran_to_spdx.rda b/data/cran_to_spdx.rda index 7ce6408908498a9099be1397579d378394ea24f9..2555f3172aeb92f84a95a5654eebdb238766e1ac 100644 GIT binary patch literal 912 zcmV;B18@97T4*^jL0KkKS#|Yq3jhXB|Iq*c|B!TNe+NIOUtzyz-|#>H5C8xH&;%a4 z5TL}Y0uq{$Bh<#HsfhJGBTWaW27#ar2AX<6(-h9C_XjSLZx z0Va}3Mu0NW zhK)v=27np>8UWA$Gy$57WnD>J)zYq>6fTOR_KJ}9cdoD9I(2phV> zeaKTe*7kR~-DY^~MP>_ck0JEEKR-KDZK$Ja-Q}|fdvzhFm#}S1%GBOqK(&DLTpzLp zt#ztZX<*A&5iGVM5Q##i*UI6g3sA9+mcfFT(^1P2PEvp|5eWta8bClYz!0pg5m#CW zVSohn5>AM7RS1Z(3Qr%@V=8f=baP5!C3Nwo%$@%e_VT;lA7??$;qq+`qvPZ^Pgctn zixkf@$i(Ng+8f|;kcTkqy;T(#)}}d`b0xT1el}T`(+SJ8fx{Ux2=pZg)PNcIq}Usb zZP*ghTH6RY4JZOv*;-0LXt5%&L{Owc*PpvfiMCKoDJa_83rSG~6-okXmI&Z_9)AFH z5G35fp(OB0Jrxj)TPl~Zn5+?*6=aI31PF>B&6Y$#08C79L|1m5{QQn1u!j|~Wwt0q zgTOI_CDgUU%DSj@+?gwvdKsqdXf(%%gn}!LI;fIKV9o@XLM`ImP7{<6P-6uW(m`SQ z!5n?DG2cq{W)D0rY>}x`gs%%iG%v#Nd!U>%NBxi%}pp~IppzIJOxByrHV$Lsz$Lv zysH=MhZiKA47@*P3t5gG3#CXMTsF|{hS0i*P@=&TRUeix-&3UnYdBSJ6Pt78*q0&M zD0nx0Tie0u{)=7UAuYcUYuut72>(<`yf0_YY@G|W^6-2Fcwxe^BFrZ_*3AvI_=wd9 z4!YBag7{4%rETACL3Fl2$r3n_bOmyyha}?xV7odD)dg@y&#M6>wBGzf`YG+-{ z3KS9P+fylc-!#N25O8h=z`3#r-h&rDYxEg#9XOc6W19PMfg}KgNnEM7pAN8Mts)ID mhAQF-izYuBJ6I6ezo=&C@&qU!kM~qZ{}*yaI8cyv^=}IoZjqP( literal 916 zcmV;F18e*riwFP!000002F+JXPuoBcHgO;%O(3PvNVna`W6igaLvQgBO zimHdmghjRFILLPB{WQ55w_%vF>o{(MY1YR9nBWx3NEnCW^YT0=dR z9z_z^IX(jVZVIh+ZtU?V1Wad)ya1)>7LS6Rqa&b^Eze}iz1D8g-s5?DkGZ`Yf*Pw* z&2vHX9{GVY^%zFI@VnhA@V&t zl5JPWtJ=+~w%$!mw`pmVyXTpHHCkg=+9a+>j_VL(yF3_M$y}_w@e#s@MPl!rorBKx zHS(vRhdktCulPKW@{5Rb8QaASA>a29v#a@X4)K>wt-Z0QvJnQfVJqj@pRE z3dCA1ZYhUMfb|TarcZeQ6A8FJA4(?dScOKEaqtpM$3W0S~Bo}fa@$s4KPNv zoI81^b?VLmpM z^iZ=B9+QkMbB1dyET}lE|Bl$hOF{e8ntpR!*DkoCaxI{3qKH9f!ixe%e%h#3mi&sv zHKSN$#*#%UpQ&OiSH)KT0IKJn>r9*wT?w;ZA^DAmJH8!o>bYMzQ0KwN6!f8M<0ecz zNyaMM)>B0L3y5rFOEKKBp#}|cg;alC4R?K5-JXmNA1 z8xQ3?qRl~s;X7ZFwTbGom3~MGWD_5Y+g2Jt5e8H|z z`3=$w?{i>LgN3{Wu!jcO%>0z#MRxu-yeO`JfRkd7R>-2D*jmkk;QzQn5>TO{VsbZ{ znXAk)9b7G5ESO_5@ptwXii+^|yX@H$6r>}tl*QLKx@W^K`7bmaoL-3g@Y`5G_7Sjl qWrz0OwU12-^r}Doyhk3@h#vJFf8E{P{lGszqt7qvnReW%4*&qJ)Wc-} diff --git a/inst/extdata/cran_licenses.csv b/inst/extdata/cran_licenses.csv index b55c3a2b..b3c77158 100644 --- a/inst/extdata/cran_licenses.csv +++ b/inst/extdata/cran_licenses.csv @@ -1,168 +1,160 @@ "","LICENSE","n","perc","cum" -"1","GPL (>= 2)",4362,23.8778,23.8778191372892 -"2","GPL-3",4122,22.564,46.4418655572586 -"3","MIT + file LICENSE",3016,16.5097,62.9516093715787 -"4","GPL-2",2609,14.2818,77.2334136194438 -"5","GPL (>= 3)",968,5.2989,82.5322969126341 -"6","GPL",520,2.8465,85.3788044668272 -"7","GPL-2 | GPL-3",339,1.8557,87.2345084300416 -"8","CC0",189,1.0346,88.269104444931 -"9","GPL-3 | file LICENSE",170,0.9306,89.1996934530326 -"10","LGPL-3",154,0.843,90.0426976133129 -"11","BSD_3_clause + file LICENSE",131,0.7171,90.75979855485 -"12","AGPL-3",116,0.635,91.3947887015546 -"13","Artistic-2.0",109,0.5967,91.9914604773374 -"14","BSD_2_clause + file LICENSE",109,0.5967,92.5881322531202 -"15","GPL (>= 2.0)",107,0.5857,93.1738559229253 -"16","Apache License 2.0",95,0.52,93.6938909568645 -"17","GPL-2 | file LICENSE",60,0.3284,94.0223341361944 -"18","Unlimited",54,0.2956,94.3179329975914 -"19","Apache License (== 2.0)",52,0.2847,94.6025837530107 -"20","GPL (>= 2) | file LICENSE",52,0.2847,94.88723450843 -"21","LGPL (>= 2.1)",51,0.2792,95.1664112108605 -"22","LGPL",50,0.2737,95.4401138603022 -"23","Apache License (>= 2.0)",49,0.2682,95.708342456755 -"24","LGPL (>= 3)",41,0.2244,95.9327786292971 -"25","Apache License 2.0 | file LICENSE",38,0.208,96.1407926428728 -"26","GPL (>= 3.0)",38,0.208,96.3488066564484 -"27","GNU General Public License",30,0.1642,96.5130282461134 -"28","GPL (>= 3) | file LICENSE",30,0.1642,96.6772498357784 -"29","CC BY 4.0",27,0.1478,96.8250492664769 -"30","LGPL (>= 2)",25,0.1369,96.9619005911977 -"31","CC BY-SA 4.0",22,0.1204,97.082329756952 -"32","LGPL-2.1",22,0.1204,97.2027589227064 -"33","Apache License (>= 2)",21,0.115,97.3177140354719 -"34","MIT + file LICENCE",20,0.1095,97.4271950952485 -"35","EUPL",19,0.104,97.5312021020363 -"36","file LICENSE",19,0.104,97.6352091088242 -"37","GPL-3 + file LICENSE",18,0.0985,97.7337420626232 -"38","LGPL-2",18,0.0985,97.8322750164222 -"39","CC BY-NC-SA 4.0",16,0.0876,97.9198598642435 -"40","AGPL (>= 3)",15,0.0821,98.001970659076 -"41","GPL (> 2)",15,0.0821,98.0840814539085 -"42","AGPL-3 | file LICENSE",14,0.0766,98.1607181957521 -"43","Apache License (== 2.0) | file LICENSE",12,0.0657,98.2264068316181 -"44","BSD 2-clause License + file LICENSE",12,0.0657,98.2920954674841 -"45","CeCILL-2",11,0.0602,98.3523100503613 -"46","GPL (>= 2) | file LICENCE",10,0.0547,98.4070505802496 -"47","Mozilla Public License 2.0",10,0.0547,98.461791110138 -"48","AGPL",9,0.0493,98.5110575870374 -"49","Apache License",9,0.0493,98.5603240639369 -"50","CeCILL",9,0.0493,98.6095905408364 -"51","FreeBSD",9,0.0493,98.6588570177359 -"52","MPL-2.0",9,0.0493,98.7081234946354 -"53","CC BY-NC 4.0",7,0.0383,98.7464418655573 -"54","LGPL (>= 2.0)",7,0.0383,98.7847602364791 -"55","MIT License + file LICENSE",7,0.0383,98.8230786074009 -"56","BSD_3_clause + file LICENCE",6,0.0328,98.8559229253339 -"57","GNU General Public License version 2",6,0.0328,98.8887672432669 -"58","GPL (>= 3) | file LICENCE",6,0.0328,98.9216115611999 -"59","Artistic License 2.0",5,0.0274,98.9489818261441 -"60","BSL-1.0",5,0.0274,98.9763520910882 -"61","GNU General Public License (>= 3)",5,0.0274,99.0037223560324 -"62","LGPL-3 | Apache License 2.0",5,0.0274,99.0310926209766 -"63","LGPL-3 | file LICENSE",5,0.0274,99.0584628859207 -"64","MPL-2.0 | file LICENSE",5,0.0274,99.0858331508649 -"65","Apache License | file LICENSE",4,0.0219,99.1077293628202 -"66","LGPL-2.1 | file LICENSE",4,0.0219,99.1296255747756 -"67","LGPL (>= 2.0, < 3) | Mozilla Public License",4,0.0219,99.1515217867309 -"68","MIT + file LICENSE | Apache License 2.0",4,0.0219,99.1734179986862 -"69","MIT+file LICENSE",4,0.0219,99.1953142106416 -"70","ACM",3,0.0164,99.2117363696081 -"71","ACM | file LICENSE",3,0.0164,99.2281585285746 -"72","AGPL + file LICENSE",3,0.0164,99.2445806875411 -"73","BSD 3-clause License + file LICENSE",3,0.0164,99.2610028465076 -"74","BSD_2_clause + file LICENCE",3,0.0164,99.2774250054741 -"75","Creative Commons Attribution 4.0 International License",3,0.0164,99.2938471644405 -"76","EUPL (>= 1.2)",3,0.0164,99.3102693234071 -"77","GPL-2 | file LICENCE",3,0.0164,99.3266914823735 -"78","GPL-2 | GPL-3 | file LICENSE",3,0.0164,99.3431136413401 -"79","GPL (>= 2.0) | file LICENSE",3,0.0164,99.3595358003065 -"80","GPL (>= 2.1)",3,0.0164,99.3759579592731 -"81","LGPL (>= 3) | file LICENSE",3,0.0164,99.3923801182395 -"82","Apache License (== 2)",2,0.0109,99.4033282242172 -"83","BSD_3_clause + file LICENSE | GPL (>= 2)",2,0.0109,99.4142763301949 -"84","BSL",2,0.0109,99.4252244361725 -"85","CeCILL-2 | file LICENSE",2,0.0109,99.4361725421502 -"86","Common Public License Version 1.0",2,0.0109,99.4471206481279 -"87","EPL",2,0.0109,99.4580687541055 -"88","FreeBSD | file LICENSE",2,0.0109,99.4690168600832 -"89","GNU Affero General Public License",2,0.0109,99.4799649660609 -"90","GNU General Public License (>= 2)",2,0.0109,99.4909130720385 -"91","GNU General Public License version 3",2,0.0109,99.5018611780162 -"92","GPL-2 | GPL-3 | MIT + file LICENSE",2,0.0109,99.5128092839939 -"93","GPL (== 2)",2,0.0109,99.5237573899715 -"94","GPL (> 3)",2,0.0109,99.5347054959492 -"95","GPL (>= 2) | BSD_2_clause + file LICENSE",2,0.0109,99.5456536019269 -"96","GPL (>= 2) | BSD_3_clause + file LICENSE",2,0.0109,99.5566017079045 -"97","GPL (>= 2) | LGPL (>= 2)",2,0.0109,99.5675498138822 -"98","GPL (>= 2.15.1)",2,0.0109,99.5784979198599 -"99","GPL | file LICENSE",2,0.0109,99.5894460258375 -"100","LGPL-2 | BSD_3_clause + file LICENSE",2,0.0109,99.6003941318152 -"101","LGPL-2 | LGPL-3 | GPL-2 | GPL-3",2,0.0109,99.6113422377929 -"102","LGPL (>= 2.0, < 3)",2,0.0109,99.6222903437705 -"103","MPL",2,0.0109,99.6332384497482 -"104","MPL (== 2.0)",2,0.0109,99.6441865557259 -"105","MPL (>= 2.0)",2,0.0109,99.6551346617035 -"106","Unlimited | file LICENSE",2,0.0109,99.6660827676812 -"107","AGPL-3 + file LICENSE",1,0.0055,99.67155682067 -"108","AGPL (>= 3) | file LICENSE",1,0.0055,99.6770308736589 -"109","AGPL | file LICENSE",1,0.0055,99.6825049266477 -"110","Apache License Version 2.0",1,0.0055,99.6879789796365 -"111","BSD_3_clause + file LICENSE | file LICENSE",1,0.0055,99.6934530326254 -"112","BSD_3_clause + file LICENSE | GPL-2",1,0.0055,99.6989270856142 -"113","CC BY-SA 4.0 | GPL-3 | file LICENSE",1,0.0055,99.704401138603 -"114","CC BY-SA 4.0 | GPL (>= 2)",1,0.0055,99.7098751915918 -"115","CC BY-SA 4.0 + file LICENSE",1,0.0055,99.7153492445807 -"116","CC0 | file LICENSE",1,0.0055,99.7208232975695 -"117","CeCILL-2 | GPL-2",1,0.0055,99.7262973505584 -"118","CeCILL (>= 2)",1,0.0055,99.7317714035472 -"119","CPL-1.0",1,0.0055,99.737245456536 -"120","CPL (>= 2)",1,0.0055,99.7427195095248 -"121","EPL (>= 1.0)",1,0.0055,99.7481935625137 -"122","EPL | CC BY 4.0 | file LICENSE",1,0.0055,99.7536676155025 -"123","EPL | file LICENSE",1,0.0055,99.7591416684914 -"124","EUPL-1.1",1,0.0055,99.7646157214802 -"125","EUPL (== 1.1)",1,0.0055,99.770089774469 -"126","EUPL | file LICENSE",1,0.0055,99.7755638274578 -"127","file LICENCE",1,0.0055,99.7810378804467 -"128","FreeBSD | GPL-2 | file LICENSE",1,0.0055,99.7865119334355 -"129","GNU Lesser General Public License",1,0.0055,99.7919859864244 -"130","GPL-2 | Artistic-2.0",1,0.0055,99.7974600394132 -"131","GPL-2 | GPL-3 | BSD_3_clause + file LICENSE",1,0.0055,99.802934092402 -"132","GPL-2 | GPL (>= 2) | GPL-3",1,0.0055,99.8084081453908 -"133","GPL-2 | LGPL-2.1 | MPL-1.1",1,0.0055,99.8138821983797 -"134","GPL-2 | MIT + file LICENCE",1,0.0055,99.8193562513685 -"135","GPL-2 | MIT + file LICENSE",1,0.0055,99.8248303043573 -"136","GPL-3 | file LICENCE",1,0.0055,99.8303043573462 -"137","GPL-3 | GPL-2",1,0.0055,99.835778410335 -"138","GPL-3 | LGPL-2.1",1,0.0055,99.8412524633238 -"139","GPL (<= 2)",1,0.0055,99.8467265163127 -"140","GPL (<= 2.0)",1,0.0055,99.8522005693015 -"141","GPL (>= 1.0)",1,0.0055,99.8576746222903 -"142","GPL (>= 2) | FreeBSD",1,0.0055,99.8631486752792 -"143","GPL (>= 2) | MIT + file LICENSE",1,0.0055,99.868622728268 -"144","GPL (>= 2.0) | file LICENCE",1,0.0055,99.8740967812568 -"145","GPL (>= 2.10)",1,0.0055,99.8795708342457 -"146","GPL (>= 2.15)",1,0.0055,99.8850448872345 -"147","GPL (>= 2.2)",1,0.0055,99.8905189402233 -"148","GPL (>= 3) | CC BY 4.0",1,0.0055,99.8959929932122 -"149","GPL (>= 3.0.0)",1,0.0055,99.901467046201 -"150","GPL (>= 3.2)",1,0.0055,99.9069410991898 -"151","GPL (>= 3.3.2)",1,0.0055,99.9124151521787 -"152","GPL (>= 3.5.0)",1,0.0055,99.9178892051675 -"153","LGPL-2 | Apache License 2.0",1,0.0055,99.9233632581563 -"154","LGPL-3 + file LICENSE",1,0.0055,99.9288373111452 -"155","LGPL (>= 2) | file LICENSE",1,0.0055,99.934311364134 -"156","LGPL (>= 2.0, < 3) | file LICENSE",1,0.0055,99.9397854171228 -"157","LGPL (>= 3.0)",1,0.0055,99.9452594701117 -"158","Lucent Public License",1,0.0055,99.9507335231005 -"159","MIT",1,0.0055,99.9562075760893 -"160","MIT + file LICENSE | Unlimited",1,0.0055,99.9616816290782 -"161","MIT +file LICENSE",1,0.0055,99.967155682067 -"162","Mozilla Public License 1.1",1,0.0055,99.9726297350558 -"163","Mozilla Public License Version 2.0",1,0.0055,99.9781037880447 -"164","MPL-1.1",1,0.0055,99.9835778410335 -"165","MPL (>= 2)",1,0.0055,99.9890518940223 -"166","MPL (>= 2) | file LICENSE",1,0.0055,99.9945259470112 -"167","MPL (>= 2) | GPL (>= 2) | file LICENSE",1,0.0055,100 +"1","GPL-3",4731,22.4441,22.4441387162579 +"2","MIT + file LICENSE",4509,21.391,43.8350965415817 +"3","GPL (>= 2)",4213,19.9867,63.8218131789933 +"4","GPL-2",2394,11.3573,75.1790881920395 +"5","GPL (>= 3)",1865,8.8477,84.0267564874994 +"6","GPL",442,2.0969,86.1236301532331 +"7","GPL-2 | GPL-3",340,1.613,87.7366098961051 +"8","CC0",229,1.0864,88.8229991935101 +"9","LGPL-3",171,0.8112,89.6342331230134 +"10","BSD_3_clause + file LICENSE",135,0.6404,90.274680962095 +"11","GPL-3 | file LICENSE",135,0.6404,90.9151288011765 +"12","Apache License 2.0",130,0.6167,91.5318563499217 +"13","AGPL-3",124,0.5883,92.1201195502633 +"14","Apache License (>= 2)",118,0.5598,92.6799184022012 +"15","BSD_2_clause + file LICENSE",112,0.5313,93.2112529057356 +"16","GPL (>= 2.0)",100,0.4744,93.6856587124626 +"17","Artistic-2.0",98,0.4649,94.1505764030552 +"18","CC BY 4.0",72,0.3416,94.4921485838987 +"19","LGPL (>= 3)",70,0.3321,94.8242326486076 +"20","Apache License (== 2.0)",64,0.3036,95.1278523649129 +"21","LGPL (>= 2.1)",57,0.2704,95.3982636747474 +"22","AGPL (>= 3)",53,0.2514,95.6496987523127 +"23","Apache License (>= 2.0)",53,0.2514,95.9011338298781 +"24","Unlimited",50,0.2372,96.1383367332416 +"25","GPL-2 | file LICENSE",48,0.2277,96.3660515204706 +"26","LGPL",47,0.223,96.5890222496323 +"27","GPL (>= 2) | file LICENSE",46,0.2182,96.8072489207268 +"28","GPL (>= 3.0)",43,0.204,97.0112434176194 +"29","Apache License 2.0 | file LICENSE",32,0.1518,97.1630532757721 +"30","EUPL",30,0.1423,97.3053750177902 +"31","GNU General Public License",28,0.1328,97.4382086436738 +"32","GPL (>= 3) | file LICENSE",28,0.1328,97.5710422695574 +"33","CC BY-SA 4.0",27,0.1281,97.6991318373737 +"34","LGPL-2.1",27,0.1281,97.82722140519 +"35","LGPL (>= 2)",24,0.1139,97.9410787988045 +"36","MIT + file LICENCE",21,0.0996,98.0407040182172 +"37","Apache License",19,0.0901,98.1308411214953 +"38","GPL-3 + file LICENSE",19,0.0901,98.2209782247735 +"39","LGPL-2",15,0.0712,98.2921390957825 +"40","MPL-2.0",14,0.0664,98.3585559087243 +"41","AGPL-3 | file LICENSE",13,0.0617,98.4202286635988 +"42","CC BY-NC-SA 4.0",13,0.0617,98.4819014184734 +"43","Apache License (== 2.0) | file LICENSE",12,0.0569,98.5388301152806 +"44","CeCILL-2",12,0.0569,98.5957588120879 +"45","BSD 2-clause License + file LICENSE",11,0.0522,98.6479434508278 +"46","GPL (> 2)",11,0.0522,98.7001280895678 +"47","FreeBSD",10,0.0474,98.7475686702405 +"48","AGPL",9,0.0427,98.790265192846 +"49","file LICENSE",9,0.0427,98.8329617154514 +"50","Apache License (== 2)",8,0.038,98.8709141799896 +"51","BSL-1.0",8,0.038,98.9088666445277 +"52","GPL (>= 2) | file LICENCE",8,0.038,98.9468191090659 +"53","CeCILL",7,0.0332,98.9800275155368 +"54","Mozilla Public License 2.0",7,0.0332,99.0132359220077 +"55","MPL-2.0 | file LICENSE",7,0.0332,99.0464443284786 +"56","BSD_3_clause + file LICENCE",6,0.0285,99.0749086768822 +"57","GNU General Public License (>= 3)",6,0.0285,99.1033730252858 +"58","LGPL-2 | LGPL-3 | GPL-2 | GPL-3",6,0.0285,99.1318373736895 +"59","MIT + file LICENSE | Apache License 2.0",6,0.0285,99.1603017220931 +"60","MIT License + file LICENSE",6,0.0285,99.1887660704967 +"61","Artistic License 2.0",5,0.0237,99.2124863608331 +"62","CC BY-NC 4.0",5,0.0237,99.2362066511694 +"63","GNU General Public License version 2",5,0.0237,99.2599269415058 +"64","GPL (>= 3.5.0)",5,0.0237,99.2836472318421 +"65","GPL (>= 3) | file LICENCE",5,0.0237,99.3073675221785 +"66","LGPL (>= 2.0)",5,0.0237,99.3310878125148 +"67","LGPL-3 | Apache License 2.0",5,0.0237,99.3548081028512 +"68","LGPL-3 | file LICENSE",5,0.0237,99.3785283931875 +"69","BSD_3_clause + file LICENSE | GPL (>= 2)",4,0.019,99.3975046254566 +"70","BSD 3-clause License + file LICENSE",3,0.0142,99.4117367996584 +"71","BSD_2_clause + file LICENCE",3,0.0142,99.4259689738602 +"72","EUPL (>= 1.2)",3,0.0142,99.4402011480621 +"73","GNU General Public License version 3",3,0.0142,99.4544333222639 +"74","GPL (== 3.0)",3,0.0142,99.4686654964657 +"75","GPL (>= 2.0) | file LICENSE",3,0.0142,99.4828976706675 +"76","GPL (>= 2.1)",3,0.0142,99.4971298448693 +"77","GPL-2 | GPL-3 | file LICENSE",3,0.0142,99.5113620190711 +"78","LGPL (>= 3) | file LICENSE",3,0.0142,99.5255941932729 +"79","ACM | file LICENSE",2,0.0095,99.5350823094075 +"80","AGPL + file LICENSE",2,0.0095,99.544570425542 +"81","BSL",2,0.0095,99.5540585416766 +"82","CC0 | file LICENSE",2,0.0095,99.5635466578111 +"83","CeCILL-2 | file LICENSE",2,0.0095,99.5730347739456 +"84","Common Public License Version 1.0",2,0.0095,99.5825228900802 +"85","Creative Commons Attribution 4.0 International License",2,0.0095,99.5920110062147 +"86","EPL",2,0.0095,99.6014991223493 +"87","FreeBSD | file LICENSE",2,0.0095,99.6109872384838 +"88","GPL (>= 2) | LGPL (>= 2)",2,0.0095,99.6204753546183 +"89","GPL-2 | file LICENCE",2,0.0095,99.6299634707529 +"90","GPL-2 | GPL-3 | MIT + file LICENSE",2,0.0095,99.6394515868874 +"91","LGPL (>= 2.0, < 3)",2,0.0095,99.648939703022 +"92","LGPL-2 | BSD_3_clause + file LICENSE",2,0.0095,99.6584278191565 +"93","LGPL-2.1 | file LICENSE",2,0.0095,99.667915935291 +"94","Mozilla Public License Version 2.0",2,0.0095,99.6774040514256 +"95","MPL (== 2.0)",2,0.0095,99.6868921675601 +"96","MPL (>= 2.0)",2,0.0095,99.6963802836947 +"97","Unlimited | file LICENSE",2,0.0095,99.7058683998292 +"98","AGPL (>= 3) | file LICENSE",1,0.0047,99.7106124578965 +"99","AGPL-3 + file LICENSE",1,0.0047,99.7153565159638 +"100","Apache License | file LICENSE",1,0.0047,99.720100574031 +"101","Apache License Version 2.0",1,0.0047,99.7248446320983 +"102","BSD_3_clause + file LICENSE | GPL-2",1,0.0047,99.7295886901656 +"103","CC BY-SA 4.0 + file LICENSE",1,0.0047,99.7343327482328 +"104","CC BY-SA 4.0 | GPL (>= 2)",1,0.0047,99.7390768063001 +"105","CC BY-SA 4.0 | GPL-3 | file LICENSE",1,0.0047,99.7438208643674 +"106","CeCILL (>= 2)",1,0.0047,99.7485649224347 +"107","CeCILL-2 | GPL-2",1,0.0047,99.7533089805019 +"108","CECILL-2.1",1,0.0047,99.7580530385692 +"109","CPL (>= 2)",1,0.0047,99.7627970966365 +"110","CPL-1.0",1,0.0047,99.7675411547037 +"111","EPL | CC BY 4.0 | file LICENSE",1,0.0047,99.772285212771 +"112","EPL | file LICENSE",1,0.0047,99.7770292708383 +"113","EUPL (>= 1.1)",1,0.0047,99.7817733289055 +"114","EUPL | file LICENSE",1,0.0047,99.7865173869728 +"115","EUPL-1.1",1,0.0047,99.7912614450401 +"116","file LICENCE",1,0.0047,99.7960055031074 +"117","FreeBSD | GPL-2 | file LICENSE",1,0.0047,99.8007495611746 +"118","GNU General Public License (>= 2)",1,0.0047,99.8054936192419 +"119","GNU Lesser General Public License",1,0.0047,99.8102376773092 +"120","GPL (<= 2.0)",1,0.0047,99.8149817353764 +"121","GPL (<= 2)",1,0.0047,99.8197257934437 +"122","GPL (== 2)",1,0.0047,99.824469851511 +"123","GPL (> 3)",1,0.0047,99.8292139095783 +"124","GPL (>= 2.0) | file LICENCE",1,0.0047,99.8339579676455 +"125","GPL (>= 2.10)",1,0.0047,99.8387020257128 +"126","GPL (>= 2.15.1)",1,0.0047,99.8434460837801 +"127","GPL (>= 2) | BSD_2_clause + file LICENSE",1,0.0047,99.8481901418473 +"128","GPL (>= 2) | LGPL (>= 3)",1,0.0047,99.8529341999146 +"129","GPL (>= 2) | LGPL-3",1,0.0047,99.8576782579819 +"130","GPL (>= 2) | MIT + file LICENSE",1,0.0047,99.8624223160491 +"131","GPL (>= 3.0.0)",1,0.0047,99.8671663741164 +"132","GPL (>= 3.2)",1,0.0047,99.8719104321837 +"133","GPL (>= 3.3.2)",1,0.0047,99.876654490251 +"134","GPL | file LICENSE",1,0.0047,99.8813985483182 +"135","GPL-2 | Artistic-2.0",1,0.0047,99.8861426063855 +"136","GPL-2 | GPL (>= 2) | GPL-3",1,0.0047,99.8908866644528 +"137","GPL-2 | GPL-3 | BSD_3_clause + file LICENSE",1,0.0047,99.89563072252 +"138","GPL-2 | LGPL-2.1 | MPL-1.1",1,0.0047,99.9003747805873 +"139","GPL-2 | MIT + file LICENCE",1,0.0047,99.9051188386546 +"140","GPL-2 | MIT + file LICENSE",1,0.0047,99.9098628967219 +"141","GPL-3 | BSD_2_clause + file LICENSE",1,0.0047,99.9146069547891 +"142","GPL-3 | BSD_3_clause + file LICENSE",1,0.0047,99.9193510128564 +"143","GPL-3 | file LICENCE",1,0.0047,99.9240950709237 +"144","GPL-3 | GPL-2",1,0.0047,99.9288391289909 +"145","GPL-3 | LGPL-2.1",1,0.0047,99.9335831870582 +"146","LGPL (>= 2.0, < 3) | Mozilla Public License",1,0.0047,99.9383272451255 +"147","LGPL (>= 2) | file LICENSE",1,0.0047,99.9430713031928 +"148","LGPL-2 | Apache License 2.0",1,0.0047,99.94781536126 +"149","LGPL-2.1 | MIT + file LICENSE",1,0.0047,99.9525594193273 +"150","LGPL-3 + file LICENSE",1,0.0047,99.9573034773946 +"151","Lucent Public License",1,0.0047,99.9620475354618 +"152","MIT + file LICENSE | Unlimited",1,0.0047,99.9667915935291 +"153","MIT +file LICENSE",1,0.0047,99.9715356515964 +"154","Mozilla Public License 1.1",1,0.0047,99.9762797096636 +"155","MPL",1,0.0047,99.9810237677309 +"156","MPL (>= 2)",1,0.0047,99.9857678257982 +"157","MPL (>= 2) | file LICENSE",1,0.0047,99.9905118838655 +"158","MPL (>= 2) | GPL (>= 2) | file LICENSE",1,0.0047,99.9952559419327 +"159","MPL-1.1",1,0.0047,100 diff --git a/inst/schemaorg.json b/inst/schemaorg.json index fa4d50de..4c9f2e21 100644 --- a/inst/schemaorg.json +++ b/inst/schemaorg.json @@ -26,6 +26,6 @@ "name": "Comprehensive R Archive Network (CRAN)", "url": "https://cran.r-project.org" }, - "runtimePlatform": "R version 4.4.1 (2024-06-14 ucrt)", - "version": "1.0.1.9000" + "runtimePlatform": "R version 4.4.1 (2024-06-14)", + "version": "1.1.0" } diff --git a/man/cff_class.Rd b/man/cff_class.Rd index a1999906..af0a4c1b 100644 --- a/man/cff_class.Rd +++ b/man/cff_class.Rd @@ -163,7 +163,7 @@ ref_list #> given-names: Charlie #> year: '2024' #> notes: R package version 2.3.9 -#> url: https://CRAN.R-project.org/package=yaml +#> url: https://github.com/vubiostat/r-yaml/ class(ref_list) #> [1] "cff_ref_lst" "cff" @@ -337,7 +337,7 @@ toBibtex(cit) #> author = \{Shawn P Garbett and Jeremy Stephens and Kirill Simonov and Yihui Xie and Zhuoer Dong and Hadley Wickham and Jeffrey Horner and \{reikoch\} and Will Beasley and Brendan O'Connor and Gregory R. Warnes and Michael Quinn and Zhian N. Kamvar and Charlie Gao\}, #> year = \{2024\}, #> note = \{R package version 2.3.9\}, -#> url = \{https://CRAN.R-project.org/package=yaml\}, +#> url = \{https://github.com/vubiostat/r-yaml/\}, #> \} # cff_pers, cff_pers_lst diff --git a/man/cran_to_spdx.Rd b/man/cran_to_spdx.Rd index 9ad8e40f..725f5e70 100644 --- a/man/cran_to_spdx.Rd +++ b/man/cran_to_spdx.Rd @@ -5,7 +5,7 @@ \alias{cran_to_spdx} \title{Mapping between \code{License} fields and SPDX} \format{ -A data frame with 91 rows and 2 variables: +A data frame with 94 rows and 2 variables: \itemize{ \item LICENSE: A valid \code{License} string on CRAN. \item SPDX. A valid SPDX License Identifier.