Skip to content

Commit

Permalink
carry ellipsis forward in print method (#200)
Browse files Browse the repository at this point in the history
* carry ellipsis forward in print method

* all ... to realtime as well

---------

Co-authored-by: Sam Albers <sam.albers@gmail.com>
  • Loading branch information
vincenzocoia and boshek committed Aug 17, 2023
1 parent 64b44a5 commit f44c289
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/hy-classes.R
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion R/realtime-classes.R
Original file line number Diff line number Diff line change
Expand Up @@ -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), ...)
}

0 comments on commit f44c289

Please sign in to comment.