@@ -418,10 +418,10 @@ validate_index_order <- function(data, key_data, index) {
418418 if (! ordered ) {
419419 idx_txt <- backticks(index )
420420 key_txt <- backticks(head(names(key_data ), - 1L ))
421- warn(sprintf(paste_inline (
421+ warn(c (
422422 " Current temporal ordering may yield unexpected results." ,
423- " Suggest to sort by %s first."
424- ), comma(c( key_txt , idx_txt ), sep = " " )) )
423+ i = sprintf( " Suggest to sort by %s first." , comma(c( key_txt , idx_txt ), sep = " " ))
424+ ))
425425 }
426426 ordered
427427}
@@ -440,9 +440,9 @@ validate_interval <- function(data, key_data, index, interval) {
440440 abort(sprintf(msg_interval , class(interval )[1 ]))
441441 }
442442 if (unknown_interval(interval ) && (nrows > vec_size(key_data ))) {
443- abort(paste_inline (
443+ abort(c (
444444 " Can't obtain the interval due to the mismatched index class." ,
445- " Please see `vignette(\" FAQ\" )` for details."
445+ i = " Please see `vignette(\" FAQ\" )` for details."
446446 ))
447447 }
448448 interval
@@ -453,9 +453,9 @@ validate_interval <- function(data, key_data, index, interval) {
453453validate_tsibble <- function (data , key , index , key_data = NULL ) {
454454 is_dup <- duplicated_key_index(data , key , index , key_data )
455455 if (is_dup ) {
456- header <- " A valid tsibble must have distinct rows identified by key and index. "
457- hint <- " Please use `duplicates()` to check the duplicated rows. "
458- abort(paste_inline( header , hint ))
456+ abort(c(
457+ " A valid tsibble must have distinct rows identified by key and index. " ,
458+ i = " Please use `duplicates()` to check the duplicated rows. " ))
459459 }
460460 data
461461}
@@ -464,9 +464,9 @@ validate_tsibble <- function(data, key, index, key_data = NULL) {
464464retain_tsibble <- function (data , key , index ) {
465465 is_dup <- duplicated_key_index(data , key , index )
466466 if (is_dup ) {
467- header <- " The result is not a valid tsibble. "
468- hint <- " Do you need `as_tibble()` to work with data frame? "
469- abort(paste_inline( header , hint ))
467+ abort(c(
468+ " The result is not a valid tsibble. " ,
469+ i = " Do you need `as_tibble()` to work with data frame? " ))
470470 }
471471 data
472472}
@@ -475,7 +475,9 @@ retain_tsibble <- function(data, key, index) {
475475format.tbl_ts <- function (x , ... , n = NULL , width = NULL , n_extra = NULL ) {
476476 is_index_null(x )
477477 if (! is_null(x %@ % " regular" ) || ! is_null(x %@ % " ordered" )) {
478- warn(" `.data`. is a corrupt tsibble object, please reconstruct with `as_tsibble()`." )
478+ warn(c(
479+ " `.data`. is a corrupt tsibble object." ,
480+ i = " Please reconstruct with `as_tsibble()`." ))
479481 }
480482 format(trunc_mat(x , n = n , width = width , n_extra = n_extra ))
481483}
0 commit comments