将许可证输入到自己的 R 包的描述文档中的正确格式

Mom*_*ill 5 r devtools roxygen2 r-package

所以我正在写一个 R 包。基本文档的一部分是描述文件。在此描述文件中,有一行必须指定用于 CRAN 共享目的的软件包的许可。

我已经尝试以我能想到的任何格式输入许可证,但在执行时仍然失败R CMD check --as-cran,说明

* checking DESCRIPTION meta-information ... WARNING Non-standard license specification: What license is it under? Standardizable: FALSE

到目前为止我已经尝试过:

License: GPL (>=3) License: GPL-3: License: GPL_3 License: GNU Affero General Public License License: GPL

他们都抛出同样的错误。以所有神圣事物的名义,这根偷偷摸摸的绳子应该是什么样子?

描述文件:

Package: lucas
Type: Package
Title: Package to download and create the DB of LUCAS data harmonized
Version: 1.0
Date: 2020-04-28
Authors@R: c(person("Mom", "Iork", email = "samplemail@mail.com", role = c("aut")), person("La", "Ma", email = "samplemail@mail.com", role = c("cre")))
Maintainer: Jane Doe <samplemail@mail.com>
Authors: Mom Iork <samplemail@mail.com>, Jane Doe <samplemail@mail.com>, John Doe <samplemail@mail.com>
Description: Package to reproduce the harmonized DB of LUCAS points
Depends:
    R (>= 3.4),
    RPostgreSQL,
    rpostgis,
    plyr,
    stringr
Imports:
    RPostgreSQL,
    rpostgis,
    plyr,
    stringr
License: GPL (>=3)
LazyData: TRUE
RoxygenNote: 7.1.0
Encoding: UTF-8
Run Code Online (Sandbox Code Playgroud)

小智 1

对于任何仍在寻找答案的人。使用usethis包中的函数https://usethis.r-lib.org/reference/licenses.html

例如,use_gpl_license()