Skip to content

Commit 14ac5e4

Browse files
committed
Change variable width error to warning. Fixes #277
1 parent 1e417bc commit 14ac5e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/position-collide.r

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ collide <- function(data, width = NULL, name, strategy, check.width = TRUE) {
2020
widths <- unique(with(data, xmax - xmin))
2121
widths <- widths[!is.na(widths)]
2222
if (!zero_range(range(widths))) {
23-
stop(name, " requires constant width", call. = FALSE)
23+
warning(name, " requires constant width: output may be incorrect",
24+
call. = FALSE)
2425
}
2526
width <- widths[1]
2627
}

0 commit comments

Comments
 (0)