diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 44cce8f5..1e594290 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -12,7 +12,7 @@ body: attributes: label: What happened? description: Also tell us, what did you expect to happen? - placeholder: Tell us what you see! Please copy and paste both your code and the error message you received. + placeholder: Tell us what you see! Please copy and paste both your code and the error message you received. Please **do not** attach screenshots of your code or error messages. We need to be able to copy and paste your code and error messages to help you. validations: required: true - type: textarea diff --git a/.zenodo.json b/.zenodo.json index ab0175c6..2c7bd3f7 100644 --- a/.zenodo.json +++ b/.zenodo.json @@ -1,6 +1,6 @@ { "title": "checklist: A Thorough and Strict Set of Checks for R Packages and Source Code", - "version": "0.6.0", + "version": "0.6.1", "license": "GPL-3.0", "upload_type": "software", "description": "

An opinionated set of rules for R packages and R source code projects.<\/p>", diff --git a/CITATION.cff b/CITATION.cff index b40758a4..221fe051 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -26,4 +26,4 @@ identifiers: value: 10.5281/zenodo.4028303 - type: url value: https://inbo.github.io/checklist/ -version: 0.6.0 +version: 0.6.1 diff --git a/DESCRIPTION b/DESCRIPTION index 32573710..41496693 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: checklist Title: A Thorough and Strict Set of Checks for R Packages and Source Code -Version: 0.6.0 +Version: 0.6.1 Authors@R: c( person("Thierry", "Onkelinx", , "thierry.onkelinx@inbo.be", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-8804-4216", affiliation = "Research Institute for Nature and Forest (INBO)")), @@ -22,7 +22,7 @@ Depends: R (>= 4.1.0) Imports: assertthat, - citeme (>= 0.1.2), + citeme (>= 0.1.4), cli, desc, devtools (> 2.4.0), diff --git a/NEWS.md b/NEWS.md index 5ce9a5d0..bffb1433 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,8 @@ +# checklist 0.6.1 + +* Improve bug report template +* Correct pass the organisation when creating a package skeleton (#197) + # checklist 0.6.0 ## Breaking changes diff --git a/R/package_maintainer.R b/R/package_maintainer.R index 339919b4..9652a054 100644 --- a/R/package_maintainer.R +++ b/R/package_maintainer.R @@ -1,9 +1,16 @@ #' @importFrom citeme individual2person package_maintainer <- function(org, lang) { message("Please select the maintainer") - maintainer <- individual2person(role = c("aut", "cre"), lang = lang) + maintainer <- individual2person( + role = c("aut", "cre"), + lang = lang, + org = org + ) while (isTRUE(ask_yes_no("Add another author?", default = FALSE))) { - maintainer <- c(maintainer, individual2person(role = "aut", lang = lang)) + maintainer <- c( + maintainer, + individual2person(role = "aut", lang = lang, org = org) + ) } info <- ask_rightsholder_funder(org = org, type = "rightsholder") selected_org <- info$selection diff --git a/R/project_maintainer.R b/R/project_maintainer.R index 014973b5..bafc64bd 100644 --- a/R/project_maintainer.R +++ b/R/project_maintainer.R @@ -1,10 +1,10 @@ #' @importFrom citeme ask_yes_no individual2badge select_individual project_maintainer <- function(org, lang) { message("Please select the corresponding author") - select_individual(lang = lang) |> + select_individual(lang = lang, org = org) |> individual2badge(role = c("aut", "cre")) -> author while (isTRUE(ask_yes_no("add another author?", default = FALSE))) { - select_individual(lang = lang) |> + select_individual(lang = lang, org = org) |> individual2badge(role = "aut") -> extra attr(author, "footnote") |> c(attr(extra, "footnote")) -> footnote diff --git a/inst/CITATION b/inst/CITATION index 9d0f0527..31bdb44e 100644 --- a/inst/CITATION +++ b/inst/CITATION @@ -2,12 +2,12 @@ citHeader("To cite `checklist` in publications please use:") # begin checklist entry bibentry( bibtype = "Manual", - title = "checklist: A Thorough and Strict Set of Checks for R Packages and Source Code. Version 0.6.0", + title = "checklist: A Thorough and Strict Set of Checks for R Packages and Source Code. Version 0.6.1", author = c(person(given = "Thierry", family = "Onkelinx")), year = 2026, url = "https://inbo.github.io/checklist/", abstract = "An opinionated set of rules for R packages and R source code projects.", - textVersion = "Onkelinx, Thierry (2026) checklist: A Thorough and Strict Set of Checks for R Packages and Source Code. Version 0.6.0. https://inbo.github.io/checklist/", + textVersion = "Onkelinx, Thierry (2026) checklist: A Thorough and Strict Set of Checks for R Packages and Source Code. Version 0.6.1. https://inbo.github.io/checklist/", keywords = "quality control; documentation; publication; inbo_version", doi = "10.5281/zenodo.4028303", )