Skip to content

Commit 8f747f9

Browse files
authored
Merge pull request #639 from ropensci/editors
update readme editors list from airtable
2 parents b701ca6 + 8e5a1c0 commit 8f747f9

File tree

2 files changed

+203
-122
lines changed

2 files changed

+203
-122
lines changed

README.Rmd

+81-46
Original file line numberDiff line numberDiff line change
@@ -87,72 +87,107 @@ on how to improve the process on our [forum](https://discuss.ropensci.org/) and
8787

8888
# <a href="#editors" name="editors"></a> Editors and reviewers
8989

90-
### Associate editors
90+
rOpenSci's Software Peer Review process is run by our team of dedicated editors and reviewers.
91+
Information on the current team, and the current status of software peer review, can be seen on our [interactive dashboard](https://ropensci-review-tools.github.io/dashboard/).
9192

92-
rOpenSci's Software Peer Review process is run by:
93+
```{r get-airtable-data, warning=FALSE, echo=FALSE}
94+
if (Sys.getenv("AIRTABLE_API_KEY") == ""){
95+
Sys.setenv(AIRTABLE_API_KEY = params$AIRTABLE_API_KEY)
96+
}
97+
if (Sys.getenv("AIRTABLE_ID") == ""){
98+
Sys.setenv(AIRTABLE_ID = params$AIRTABLE_ID)
99+
}
100+
101+
at_eic <- airtabler::airtable(base = Sys.getenv("AIRTABLE_ID"),
102+
table = "editor-in-chief-rotation")
103+
eic <- at_eic$`editor-in-chief-rotation`$select_all()
104+
105+
at_rev <- airtabler::airtable(base = Sys.getenv("AIRTABLE_ID"),
106+
table = "reviewers-prod")
107+
reviewers <- at_rev$`reviewers-prod`$select_all()
108+
109+
at_guest <- airtabler::airtable(base = "app8dssb6a7PG6Vwj",
110+
table = "guest-editors")
111+
guest_editors <- at_guest$`guest-editors`$select_all()
112+
```
113+
114+
### Editor-in-Chief
115+
116+
```{r eic, echo=FALSE, results='asis'}
117+
eic$period_start <- as.Date(eic$period_start)
118+
eic$period_end <- as.Date(eic$period_end)
119+
today <- Sys.Date ()
120+
eic_now <- eic [which (eic$period_start <= today & eic$period_end >= today), ]
121+
eic_name <- eic_now$acting_eic_name [[1]]
122+
eic_id <- eic_now$acting_eic
123+
eic_in_rev_table <- which(reviewers$id == eic_id)
124+
eic_github <- reviewers$github[eic_in_rev_table]
125+
126+
out <- paste0(
127+
"We rotate our Editor-in-Chief, generally every three months. ",
128+
"Our current Editor-in-Chief is [", eic_name, "](https://github.com/",
129+
eic_github, ").\n"
130+
)
131+
cat(out, sep = "")
132+
```
133+
134+
135+
### Editorial team
93136

94-
* [Noam Ross](https://github.com/noamross), EcoHealth Alliance, USA;
95-
* [Karthik Ram](https://github.com/karthik), rOpenSci, USA;
96-
* [Maëlle Salmon](https://github.com/maelle), rOpenSci, France;
97-
* [Anna Krystalli](https://github.com/annakrystalli), University of Sheffield RSE, UK;
98-
* [Mauro Lepore](https://github.com/maurolepore), 2 Degrees Investing Initiative, USA;
99-
* [Laura DeCicco](https://github.com/ldecicco-USGS), USGS, USA;
100-
* [Julia Gustavsen](https://github.com/jooolia), Agroscope, Switzerland;
101-
* [Emily Riederer](https://github.com/emilyriederer), Capital One, USA;
102-
* [Adam Sparks](https://github.com/adamhsparks), Department of Primary Industries and Regional Development;
103-
* [Jeff Hollister](https://github.com/jhollist), US Environmental Protection Agency.
137+
```{r editors, echo=FALSE}
138+
editor_index_all <- purrr::map_lgl(reviewers$editor, ~!is.null(.))
139+
editors_all <- reviewers[which(editor_index_all), c("name", "github", "Affiliation", "editor")]
140+
editors_all <- editors_all [which(!editors_all$name == eic_name), ]
141+
last_names <- humaniformat::last_name(trimws(editors_all$name))
142+
editors_all <- editors_all[order(last_names), ]
104143
105-
Associate editors for statistical software are:
144+
editors_past <- editors_all[grep("Emeritus", editors_all$editor), ]
145+
editors <- editors_all[which(!editors_all$name %in% editors_past$name), ]
146+
```
147+
148+
Our current team of editors for software peer-review includes:
106149

107-
- [Ben Bolker](https://github.com/bbolker), McMaster University, Canada;
108-
- [Rebecca Killick](https://github.com/rkillick), Lancaster University, UK;
109-
- [Stephanie Hicks](https://github.com/stephaniehicks), Johns Hopkins University, USA;
110-
- [Paula Moraga](https://github.com/Paula-Moraga), King Abdullah University of Science and Technology, Saudi Arabia;
111-
- [Leonardo Collado-Torres](https://github.com/lcolladotor), Lieber Institute for Brain Development, USA;
112-
- [Toby Hocking](https://github.com/tdhock), Northern Arizona University, USA.
150+
```{r gen_ed_out-fn, echo=FALSE}
151+
gen_ed_out <- function(ed_dat) {
152+
out <- gsub("(,\\sNA|\\s);", ";", paste0(
153+
"- [", ed_dat$name, "](https://github.com/", ed_dat$github, "), ",
154+
ed_dat$Affiliation, ";\n"))
155+
out[length(out)] <- gsub(";\\n$", ".\n", out[length(out)])
156+
return(out)
157+
}
158+
```
159+
```{r editors-out, echo=FALSE, results='asis'}
160+
cat(gen_ed_out(editors), sep = "")
161+
```
113162

114-
### Reviewers and guest editors
163+
### Reviewers and former editors
115164

116165
We are grateful to the following individuals who have offered up their time and expertise to review packages submitted to rOpenSci.
117166

118167
```{r reviewers, echo=FALSE, results='asis'}
119-
if (Sys.getenv("AIRTABLE_API_KEY") == ""){
120-
Sys.setenv(AIRTABLE_API_KEY = params$AIRTABLE_API_KEY)
121-
}
122-
if (Sys.getenv("AIRTABLE_ID") == ""){
123-
Sys.setenv(AIRTABLE_ID = params$AIRTABLE_ID)
124-
}
125-
editors <- c(
126-
"Noam Ross", "Karthik Ram", "Maëlle Salmon",
127-
"Anna Krystalli", "Mauro Lepore",
128-
"Laura DeCicco", "Julia Gustavsen",
129-
"Emily Riederer", "Adam Sparks", "Jeff Hollister"
130-
)
131-
reviewers <- airtabler::airtable(base = Sys.getenv("AIRTABLE_ID"),
132-
table = "reviewers-prod")
133-
reviewers <- reviewers$`reviewers-prod`$select_all()
134168
reviewers <- reviewers[purrr::map_lgl(reviewers$reviews,
135169
~!is.null(.)) &
136-
!(reviewers$name %in% c(editors, "???")), ]
170+
!(reviewers$name %in% c(editors_all$name, "???")), ]
137171
# get last names
138172
last_names <- humaniformat::last_name(trimws(reviewers$name))
139173
reviewers <- reviewers[order(last_names), ]
140174
reviewers$name[is.na(reviewers$name)] <- reviewers$github[is.na(reviewers$name)]
141175
cat(paste0("[", reviewers$name, "](https://github.com/", reviewers$github, ")", collapse = " \U00B7 "))
142176
```
143177

144-
We are also grateful to the following individuals who have served as guest editors.
178+
We are also grateful to the following individuals who have previously served as editors.
145179

146-
```{r}
147-
#| echo: false
148-
#| results: 'asis'
149-
guest_editors <- airtabler::airtable(base = "app8dssb6a7PG6Vwj",
150-
table = "guest-editors")
151-
guest_editors <- guest_editors$`guest-editors`$select_all()
152-
guest_editors <- guest_editors[!(guest_editors$name %in% c(editors, "???")), ]
180+
```{r editors_past, echo=FALSE, results='asis'}
181+
cat(gen_ed_out(editors_past), sep = "")
182+
```
183+
184+
And the following who have served as guest editors.
185+
186+
```{r guest-editors-out, echo=FALSE, results='asis'}
187+
guest_editors <- guest_editors[!(guest_editors$name %in%
188+
c(editors_all$name, eic_name, "???")), ]
153189
# get last names
154190
last_names <- humaniformat::last_name(trimws(guest_editors$name))
155191
guest_editors <- guest_editors[order(last_names), ]
156-
cat(paste0("[", guest_editors$name, "](https://github.com/", guest_editors$github, ")", collapse = " \U00B7 "))
192+
cat(gen_ed_out(guest_editors), sep = "")
157193
```
158-

0 commit comments

Comments
 (0)