Skip to content

Commit

Permalink
Merge pull request #117 from Warnes-Innovations/main
Browse files Browse the repository at this point in the history
Fix 'length(x) = 4 > 1' in coercion to 'logical(1)' in `webshot`
  • Loading branch information
wch authored Apr 28, 2023
2 parents e5df3d0 + b5b9304 commit bff3fb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/webshot.R
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ webshot <- function(
# them into a character vector with the desired format.
argToVec <- function(arg) {
vapply(arg, FUN.VALUE = character(1), function(x) {
if (is.null(x) || is.na(x)) NA_character_
if (any(is.null(x)) || any(is.na(x))) NA_character_
else paste(x, collapse = ",")
})
}
Expand Down

0 comments on commit bff3fb3

Please sign in to comment.