From 9a3ca2f04fb4cff17b40de61b7215db2ad8b3b7f Mon Sep 17 00:00:00 2001 From: Thierry Onkelinx Date: Fri, 26 Jun 2026 14:04:39 +0200 Subject: [PATCH 1/3] pass organisation to select_individual() Fixes #197 --- DESCRIPTION | 2 +- R/package_maintainer.R | 11 +++++++++-- R/project_maintainer.R | 4 ++-- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 32573710..ca0acdd3 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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/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 From 6c200a2def3ba80ce07d3cf2c580fbc9d01c7509 Mon Sep 17 00:00:00 2001 From: Thierry Onkelinx Date: Fri, 26 Jun 2026 14:11:35 +0200 Subject: [PATCH 2/3] Improve bug report template --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 234c32297f89f7b6cf79f93b9c2b30a5ea54dec3 Mon Sep 17 00:00:00 2001 From: Thierry Onkelinx Date: Sat, 27 Jun 2026 11:12:40 +0200 Subject: [PATCH 3/3] bump package version --- .zenodo.json | 2 +- CITATION.cff | 2 +- DESCRIPTION | 2 +- NEWS.md | 5 +++++ inst/CITATION | 4 ++-- 5 files changed, 10 insertions(+), 5 deletions(-) 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 ca0acdd3..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)")), 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/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", )