Skip to content

Commit fd5a831

Browse files
committed
date_labels should be string too
1 parent b53b2d0 commit fd5a831

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/scale-date.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ datetime_scale <- function(aesthetics, transform, trans = deprecated(),
311311
minor_breaks <- breaks_width(date_minor_breaks)
312312
}
313313
if (!is.waive(date_labels)) {
314+
check_string(date_labels)
314315
labels <- function(self, x) {
315316
tz <- self$timezone %||% "UTC"
316317
label_date(date_labels, tz)(x)

0 commit comments

Comments
 (0)