From f44c2893aa1070cecdffe3b2034b7527c0319784 Mon Sep 17 00:00:00 2001 From: Vincenzo Coia Date: Thu, 17 Aug 2023 14:58:24 -0700 Subject: [PATCH] carry ellipsis forward in print method (#200) * carry ellipsis forward in print method * all ... to realtime as well --------- Co-authored-by: Sam Albers --- R/hy-classes.R | 2 +- R/realtime-classes.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/hy-classes.R b/R/hy-classes.R index 13cea84..e007aff 100644 --- a/R/hy-classes.R +++ b/R/hy-classes.R @@ -21,7 +21,7 @@ print.hy <- function(x, ...) { summary_msg(x) if (c("Date") %in% names(x)) date_range_msg(x) if ("STATION_NUMBER" %in% names(x)) missed_station_msg(x) - print(dplyr::as_tibble(x)) + print(dplyr::as_tibble(x), ...) } summary_msg <- function(x) { diff --git a/R/realtime-classes.R b/R/realtime-classes.R index bbc3946..b7a8a46 100644 --- a/R/realtime-classes.R +++ b/R/realtime-classes.R @@ -29,5 +29,5 @@ print.realtime <- function(x, ...) { } else { cat(" Date range: not available \n") } - print(dplyr::as_tibble(x)) + print(dplyr::as_tibble(x), ...) }