Skip to content

Commit 3bd254f

Browse files
committed
Merge branch 'dev'
2 parents 552b9ff + 7d78055 commit 3bd254f

22 files changed

+486
-228
lines changed

.github/workflows/dev.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ name: Render-Book-from-dev
99

1010
jobs:
1111
bookdown:
12+
env:
13+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1214
name: Render-Book
1315
runs-on: macOS-latest
1416
steps:

.github/workflows/pr.yml

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ jobs:
88
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
99
name: Render Book
1010
runs-on: macOS-latest
11+
env:
12+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
13+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
14+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
1115
if: github.repository == 'ropensci/dev_guide'
1216
steps:
1317
- name: Is this a fork
@@ -46,24 +50,18 @@ jobs:
4650
- name: Move files around
4751
run: Rscript -e 'file.copy(from = "pdfbook/ropensci-dev-guide.pdf", to = "_book/ropensci-dev-guide.pdf")' -e 'purrr::walk(list.files("images", full.names = TRUE), file.copy, to = "_book/images")'
4852

49-
- uses: actions/setup-node@v1
50-
51-
- name: Install Netlify CLI
52-
run: npm install netlify-cli -g
53-
54-
- name: Deploy to Netlify (test)
55-
run: DEPLOY_URL=$(netlify deploy --site ${{ secrets.NETLIFY_SITE_ID }} --auth ${{ secrets.NETLIFY_AUTH_TOKEN }} --dir=docs --json | jq '.deploy_url' --raw-output);echo "DEPLOY_URL=${DEPLOY_URL}" >> $GITHUB_ENV
56-
57-
- name: Update commit status
58-
run: |
59-
curl --request POST \
60-
--url https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.event.pull_request.head.sha }} \
61-
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
62-
--header 'Accept: application/vnd.github.antiope-preview+json' \
63-
--header 'content-type: application/json' \
64-
--data '{
65-
"state": "success",
66-
"target_url": "${{ env.DEPLOY_URL }}",
67-
"context": "Netlify"
68-
}'
69-
53+
- name: Deploy to Netlify
54+
id: netlify-deploy
55+
uses: nwtgck/[email protected]
56+
with:
57+
publish-dir: './_book'
58+
production-branch: master
59+
github-token: ${{ secrets.GITHUB_TOKEN }}
60+
deploy-message:
61+
'Deploy from GHA: ${{ github.event.pull_request.title || github.event.head_commit.message }} (${{ github.sha }})'
62+
# these all default to 'true'
63+
enable-pull-request-comment: false
64+
enable-commit-comment: false
65+
# enable-commit-status: true
66+
#o verwrites-pull-request-comment: true
67+
timeout-minutes: 1

.zenodo.json

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,67 +2,82 @@
22
"description": "Extended version of the rOpenSci packaging guide. This book is a guide for authors, maintainers, reviewers and editors of rOpenSci. The first section of the book contains our guidelines for creating and testing R packages. The second section is dedicated to rOpenSci's software peer review process: what it is, our policies, and specific guides for authors, editors and reviewers throughout the process. The third and last section features our best practice for nurturing your package once it has been onboarded: how to collaborate with other developers, how to document releases, how to promote your package and how to leverage GitHub as a development platform. The third section also features a chapter for anyone wishing to start contributing to rOpenSci packages.",
33
"license": {"id":"CC-BY-4.0"},
44
"title": "rOpenSci Packages: Development, Maintenance, and Peer Review",
5-
"version": "0.6.0",
5+
"version": "0.7.0",
66
"upload_type": "software",
7-
"publication_date": "2021-02-22",
7+
"publication_date": "2021-11-16",
88
"publication_type": "book",
99
"creators": [
1010
{
1111
"name": "rOpenSci"
1212
},
1313
{
14-
"name": "Brooke Anderson",
14+
"name": "Anderson, Brooke",
1515
"affiliation": "Colorado State University"
1616
},
1717
{
18-
"name": "Scott Chamberlain",
18+
"name": "Chamberlain, Scott",
1919
"affiliation": "rOpenSci",
2020
"orcid": "0000-0003-1444-9135"
2121
},
2222
{
23-
"name": "Laura DeCicco",
23+
"name": "DeCicco, Laura",
2424
"affiliation": "USGS",
2525
"orcid": "0000-0002-3915-9487"
2626
},
2727
{
28-
"name": "Julia Gustavsen",
29-
"affiliation": "SOPHiA GENETICS",
28+
"name": "Gustavsen, Julia",
29+
"affiliation": "Agroscope",
3030
"orcid": "0000-0002-4764-4802"
3131
},
3232
{
33-
"name": "Anna Krystalli",
33+
"name": "Krystalli, Anna",
3434
"affiliation": "University of Sheffield RSE",
3535
"orcid": "0000-0002-2378-4915"
3636
},
3737
{
38-
"name": "Mauro Lepore",
38+
"name": "Lepore, Mauro",
3939
"affiliation": "2 Degrees Investing Initiative",
4040
"orcid": "0000-0002-1986-7988"
4141
},
4242
{
43-
"name": "Lincoln Mullen",
43+
"name": "Mullen, Lincoln",
4444
"affiliation": "George Mason University",
4545
"orcid": "0000-0001-5103-6917"
4646
},
4747
{
48-
"name": "Karthik Ram",
48+
"name": "Ram, Karthik",
4949
"affiliation": "rOpenSci",
5050
"orcid": "0000-0002-0233-1757"
5151
},
5252
{
53-
"name": "Noam Ross",
53+
"name": "Ross, Noam",
5454
"affiliation": "EcoHealth Alliance",
5555
"orcid": "0000-0002-2136-0000"
5656
},
5757
{
58-
"name": "Ma\u00eblle Salmon",
58+
"name": "Salmon, Ma\u00eblle",
5959
"affiliation": "rOpenSci",
6060
"orcid": "0000-0002-2815-0399"
6161
},
6262
{
63-
"name": "Melina Vidoni",
63+
"name": "Vidoni, Melina",
6464
"affiliation": "RMIT University (School of Science)",
6565
"orcid": "0000-0002-4099-1430"
66+
},
67+
{
68+
"name": "Riederer, Emily",
69+
"affiliation": "Capital One",
70+
"orcid": ""
71+
},
72+
{
73+
"name": "Sparks, Adam",
74+
"affiliation": "Department of Primary Industries and Regional Development",
75+
"orcid": "0000-0002-0061-8359"
76+
},
77+
{
78+
"name": "Hollister, Jeff",
79+
"affiliation": "US Environmental Protection Agency",
80+
"orcid": "0000-0002-9254-9740"
6681
}
6782
],
6883
"access_right": "open"

DESCRIPTION

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,20 @@ Title: rOpenSci Packages: Development, Maintenance, and Peer Review
44
Description: rOpenSci Packages: Development, Maintenance, and Peer Review
55
Version: 0.0.1
66
Imports:
7-
airtabler,
8-
htmltools,
9-
bookdown,
10-
purrr,
11-
humaniformat,
12-
bslib,
13-
downlit,
14-
xml2,
15-
zen4R
16-
Remotes:
17-
bergant/airtabler,
18-
rstudio/htmltools,
19-
rstudio/bookdown,
20-
rstudio/bslib,
21-
r-lib/downlit
7+
airtabler,
8+
htmltools,
9+
bookdown,
10+
purrr,
11+
humaniformat,
12+
bslib,
13+
downlit,
14+
xml2,
15+
rvest,
16+
usethis,
17+
rlang (>= 0.4.11.9000)
18+
Remotes:
19+
bergant/airtabler,
20+
rstudio/htmltools,
21+
rstudio/bookdown,
22+
r-lib/downlit,
23+
r-lib/rlang

_bookdown.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ rmd_files: ["index.Rmd", "pkg_building.Rmd",
77
"softwarereview_intro.Rmd", "softwarereview_policies.Rmd",
88
"softwarereview_author.Rmd",
99
"softwarereview_reviewer.Rmd", "softwarereview_editor.Rmd",
10+
"softwarereview_editor_management.Rmd",
1011
"maintenance_collaboration.Rmd",
1112
"maintenance_changing_maintainers.Rmd","maintenance_releases.Rmd",
1213
"maintenance_marketing.Rmd", "maintenance_github_grooming.Rmd",

appendix.Rmd

Lines changed: 61 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,38 @@
22

33
# NEWS {#booknews}
44

5+
## dev
6+
7+
* 2021-11-04, add mentions of stat software review to software review intro and to the first book page (#342).
8+
9+
* 2021-11-04, mention pkgcheck in the author guide (@mpadge, #343).
10+
11+
* 2021-11-04, add editors' responsabilities including Editor etiquette for commenting on packages on which you aren't handling/reviewing (@jhollist, #354).
12+
13+
* 2021-11-04, give precise examples of tools for installation instructions (remotes, pak, R-universe).
14+
15+
* 2021-11-04, add more bot guidance (less work for editors).
16+
17+
* 2021-10-07, add guidance for editorial management (recruiting, inviting, onboarding, offboarding editors).
18+
19+
* 2021-09-14, add a requirement that there is at least one _HTML_ vignette.
20+
21+
* 2021-09-03, add some recommendations around git. (@annakrystalli, #341)
22+
23+
* 2021-07-14, clarify the categories data extraction and munging by adding examples. (@noamross, #337)
24+
25+
* 2021-05-20, add guidance around setting up your package to foster a community, inspired by the recent rOpenSci community call. (with help from `@Bisaloo`, #289, #308)
26+
27+
* 2021-04-27, no longer ask reviewers to ask covr as it'll be done by automatic tools, but ask them to pay attention to tests skipped.
28+
29+
* 2021-04-02, add citation guidance.
30+
31+
* 2021-04-02, stop asking reviewers to run goodpractice as this is part of editorial checks.
32+
33+
* 2021-03-23, launched a new form for reviewer volunteering.
34+
35+
* 2021-02-24, add guidance around the use of `@ropensci-review-bot`.
36+
537
## 0.6.0
638

739
* 2021-02-04, add guidance to enforce package versioning and tracking of changes through review (`@annakrystalli`, #305)
@@ -204,25 +236,40 @@
204236

205237
* Added a `NEWS.md` file to track changes to the book.
206238

239+
```{r, echo=FALSE, message=FALSE, warning=FALSE}
240+
fs::dir_create("templaaates")
241+
save_one <- function(file) {
242+
download.file(
243+
sprintf("https://raw.githubusercontent.com/ropensci/software-review/master/.buffy/templates/%s", file),
244+
file.path("templaaates", file)
245+
)
246+
}
247+
248+
lapply(
249+
c("approved.md", "editor.md", "review-es.md", "review.md", "reviewer-approval.md"),
250+
save_one
251+
)
252+
```
253+
207254
# Review template {#reviewtemplate}
208255

209256
```markdown
210-
```{r, eval = !knitr::is_latex_output(), child="templates/review.md"}
257+
```{r, eval = !knitr::is_latex_output(), child="templaaates/review.md"}
211258
```
212259
```
213260
214-
```{r, eval = knitr::is_latex_output(), child="templates/review.md"}
261+
```{r, eval = knitr::is_latex_output(), child="templaaates/review.md"}
215262
216263
```
217264

218265
# Review template in Spanish {#reviewtemplatees}
219266

220267
```markdown
221-
```{r, eval = !knitr::is_latex_output(), child="templates/review-es.md"}
268+
```{r, eval = !knitr::is_latex_output(), child="templaaates/review-es.md"}
222269
```
223270
```
224271
225-
```{r, eval = knitr::is_latex_output(), child="templates/review-es.md"}
272+
```{r, eval = knitr::is_latex_output(), child="templaaates/review-es.md"}
226273
227274
```
228275

@@ -232,11 +279,11 @@
232279

233280

234281
```markdown
235-
```{r, eval = !knitr::is_latex_output(), child="templates/editor.md"}
282+
```{r, eval = !knitr::is_latex_output(), child="templaaates/editor.md"}
236283
```
237284
```
238285
239-
```{r, eval = knitr::is_latex_output(), child="templates/editor.md"}
286+
```{r, eval = knitr::is_latex_output(), child="templaaates/editor.md"}
240287
241288
```
242289

@@ -257,23 +304,23 @@ Editors may make use of the e-mail template below in recruiting reviewers.
257304

258305

259306
```markdown
260-
```{r, eval = !knitr::is_latex_output(), child="templates/approved.md"}
307+
```{r, eval = !knitr::is_latex_output(), child="templaaates/approved.md"}
261308
```
262309
```
263310
264-
```{r, eval = knitr::is_latex_output(), child="templates/approved.md"}
311+
```{r, eval = knitr::is_latex_output(), child="templaaates/approved.md"}
265312
266313
```
267314

268315
# Reviewer approval comment template {#approval2template}
269316

270317

271318
```markdown
272-
```{r, eval = !knitr::is_latex_output(), child="templates/reviewer-approval.md"}
319+
```{r, eval = !knitr::is_latex_output(), child="templaaates/reviewer-approval.md"}
273320
```
274321
```
275322
276-
```{r, eval = knitr::is_latex_output(), child="templates/reviewer-approval.md"}
323+
```{r, eval = knitr::is_latex_output(), child="templaaates/reviewer-approval.md"}
277324
278325
```
279326

@@ -298,6 +345,10 @@ Editors may make use of the e-mail template below in recruiting reviewers.
298345
299346
```
300347

348+
```{r, echo=FALSE, message=FALSE, warning=FALSE}
349+
fs::dir_delete("templaaates")
350+
```
351+
301352
# How to set a redirect {#redirect}
302353

303354
## Non GitHub pages site (e.g. Netlify)

images/airtable.png

19.9 KB
Loading

index.Rmd

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "rOpenSci Packages: Development, Maintenance, and Peer Review"
3-
author: "rOpenSci software review editorial team (current and alumni): Brooke Anderson, Scott Chamberlain, Laura DeCicco, Julia Gustavsen, Anna Krystalli, Mauro Lepore, Lincoln Mullen, Karthik Ram, Emily Riederer, Noam Ross, Maëlle Salmon, Melina Vidoni"
3+
author: "rOpenSci software review editorial team (current and alumni): Brooke Anderson, Scott Chamberlain, Laura DeCicco, Julia Gustavsen, Jeff Hollister, Anna Krystalli, Mauro Lepore, Lincoln Mullen, Karthik Ram, Emily Riederer, Noam Ross, Maëlle Salmon, Adam Sparks, Melina Vidoni"
44
date: "`r Sys.Date()`"
55
site: bookdown::bookdown_site
66
documentclass: book
@@ -30,12 +30,13 @@ knitr::include_graphics("images/cover.png")
3030

3131
```{r zenodo, echo=FALSE, results = 'asis', warning=FALSE}
3232
cat("\n```bibtex\n")
33-
zenodo <- zen4R::ZenodoManager$new(
34-
token = Sys.getenv("ZENODO_TOKEN")
35-
)
36-
guide <- zenodo$getDepositionByConceptDOI("10.5281/zenodo.2553043")
37-
guide$exportAsBibTeX("dev_citation")
38-
cat(readLines("dev_citation_BibTeX.bib"), sep = "\n")
33+
u <- "https://zenodo.org/record/2553043" # universal URL redirects to latest
34+
s <- rvest::session(u)
35+
u <- paste0(s$url, "/export/hx") # redirected
36+
out <- rvest::read_html(u)
37+
bibentry <- rvest::html_text(rvest::html_element(out, "pre"))
38+
writeLines(strsplit(bibentry, "\n")[[1]], "dev_citation_BibTeX.bib")
39+
cat(bibentry)
3940
cat("\n```\n")
4041
```
4142

@@ -47,7 +48,7 @@ Welcome! This book is a guide for authors, maintainers, reviewers and editors of
4748

4849
The [first section of the book](#building) contains our guidelines for creating and testing R packages.
4950

50-
The [second section](#softwarereviewintro) is dedicated to rOpenSci's software peer review process: what it is, our policies, and specific guides for authors, editors and reviewers throughout the process.
51+
The [second section](#softwarereviewintro) is dedicated to rOpenSci's software peer review process: what it is, our policies, and specific guides for authors, editors and reviewers throughout the process. For _statistical software review_, refer to the [project webpage and resources](https://ropensci.org/stat-software-review/).
5152

5253
The [third and last section](#collaboration) features our best practice for nurturing your package once it has been onboarded: how to collaborate with other developers, how to document releases, how to promote your package and how to leverage GitHub as a development platform. The third section also features a [chapter for anyone wishing to start contributing to rOpenSci packages](#contributingguide).
5354

0 commit comments

Comments
 (0)