Skip to content

Commit b53b2d0

Browse files
committed
check type for date_breaks and date_minor_breaks #5880
1 parent c706a01 commit b53b2d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/scale-date.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,11 @@ datetime_scale <- function(aesthetics, transform, trans = deprecated(),
303303
if (is.character(minor_breaks)) minor_breaks <- breaks_width(minor_breaks)
304304

305305
if (!is.waive(date_breaks)) {
306+
check_string(date_breaks)
306307
breaks <- breaks_width(date_breaks)
307308
}
308309
if (!is.waive(date_minor_breaks)) {
310+
check_string(date_minor_breaks)
309311
minor_breaks <- breaks_width(date_minor_breaks)
310312
}
311313
if (!is.waive(date_labels)) {

0 commit comments

Comments
 (0)