Skip to content

Commit

Permalink
fix editor listings when tables have no 'Affiliation'
Browse files Browse the repository at this point in the history
Previous version printed ',;' for guest editors, because that table
has no 'Affiliation' column.
  • Loading branch information
mpadge committed May 3, 2024
1 parent 0eac455 commit 1d359c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ Our current team of editors for software peer-review includes:

```{r gen_ed_out-fn, echo=FALSE}
gen_ed_out <- function(ed_dat) {
if (!"Affiliation" %in% names(ed_dat)) {
ed_dat$Affiliation <- NA_character_
}
out <- gsub("(,\\sNA|\\s);", ";", paste0(
"- [", ed_dat$name, "](https://github.com/", ed_dat$github, "), ",
ed_dat$Affiliation, ";\n"))
Expand Down

0 comments on commit 1d359c3

Please sign in to comment.