Skip to content

Commit 1cf296e

Browse files
committed
feat(print.epi_df): display decay_to_tibble attr if non-NULL
1 parent b1c40d4 commit 1cf296e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/methods-epi_df.R

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ print.epi_df <- function(x, ...) {
6060
cat(sprintf("* %-9s = %s\n", "geo_type", attributes(x)$metadata$geo_type))
6161
cat(sprintf("* %-9s = %s\n", "time_type", attributes(x)$metadata$time_type))
6262
cat(sprintf("* %-9s = %s\n", "as_of", attributes(x)$metadata$as_of))
63+
# Conditional output (silent if attribute is NULL):
64+
cat(sprintf("* %-9s = %s\n", "decay_to_tibble", attr(x, "decay_to_tibble")))
6365
cat("\n")
6466
NextMethod()
6567
}

0 commit comments

Comments
 (0)