From a592fb0719b5b6b0956a74dc5c43b90a1700ddd5 Mon Sep 17 00:00:00 2001 From: Martin Chan Date: Wed, 14 Apr 2021 17:50:18 +0100 Subject: [PATCH] fix: missing caption for create_bar --- R/create_bar.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/create_bar.R b/R/create_bar.R index 210d7001..f953d690 100644 --- a/R/create_bar.R +++ b/R/create_bar.R @@ -173,7 +173,7 @@ create_bar <- function(data, subtitle = paste("Average", tolower(clean_nm), "by", tolower(camel_clean(hrvar))), x = camel_clean(hrvar), y = paste("Average weekly", clean_nm), - labs = extract_date_range(data, return = "text") + caption = extract_date_range(data, return = "text") ) summary_table <-