Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions R/coord-.R
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@

# Elaborates an 'expand' argument for every side (top, right, bottom or left)
parse_coord_expand <- function(expand) {
if (is.numeric(expand) && all(expand %in% c(0, 1))) {
expand <- as.logical(expand)

Check warning on line 250 in R/coord-.R

View check run for this annotation

Codecov / codecov/patch

R/coord-.R#L250

Added line #L250 was not covered by tests
}
check_logical(expand)
if (anyNA(expand)) {
cli::cli_abort("{.arg expand} cannot contain missing values.")
Expand Down
Loading