Skip to content

Commit

Permalink
handle case when no rightsholder and funder are defined
Browse files Browse the repository at this point in the history
  • Loading branch information
ThierryO committed Sep 14, 2024
1 parent 47543af commit b4f001c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions R/check_description.R
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,13 @@ check_authors <- function(this_desc, org) {
)
funder <- NULL
}
} else if (!is.na(org$get_funder)) {
} else {
rightsholder <- NULL
funder <- person(given = org$get_funder, role = "fnd")
if(!is.na(org$get_funder)) {

Check warning on line 316 in R/check_description.R

View workflow job for this annotation

GitHub Actions / check package

file=R/check_description.R,line=316,col=7,[spaces_left_parentheses_linter] Place a space before left parenthesis, except in a function call.
funder <- person(given = org$get_funder, role = "fnd")
} else {
funder <- NULL
}
}

problems <- c(
Expand Down

0 comments on commit b4f001c

Please sign in to comment.