Skip to content

Commit

Permalink
cover_info(): collapse the corresponding email field
Browse files Browse the repository at this point in the history
  • Loading branch information
florisvdh committed Jun 11, 2024
1 parent 54098e1 commit 70444d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/cover_info.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ cover_info <- function(path = "index.Rmd") {
function(x) {
ifelse(is.null(x$corresponding) || !x$corresponding, "", x$email)
}
) -> yaml_header$corresponding
) |>
paste(collapse = ", ") |>
trimws(whitespace = "[ \t\r\n,]") -> yaml_header$corresponding
vapply(
yaml_header$author, FUN.VALUE = character(1),
FUN = function(author) {
Expand Down

0 comments on commit 70444d8

Please sign in to comment.