File tree 1 file changed +5
-6
lines changed 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -201,13 +201,12 @@ pub_covid_hosp_facility <- function(
201
201
# Confusingly, the endpoint expects `collection_weeks` to be in day format,
202
202
# but correspond to epiweeks. Allow `collection_weeks` to be provided in
203
203
# either day or week format.
204
- coercion_msg <- glue :: glue(
205
- c(
206
- " `collection_weeks` {collection_weeks} is in week format but
207
- `pub_covid_hosp_facility` expects day format; dates will be automatically
208
- converted to day format"
204
+ coercion_msg <- c(
205
+ " `collection_weeks` is in week format but `pub_covid_hosp_facility`
206
+ expects day format; dates will be converted to day format but may not
207
+ correspond exactly to desired time range"
209
208
)
210
- )
209
+
211
210
if (test_class(collection_weeks , " EpiRange" ) && nchar(collection_weeks $ from ) == 6 ) {
212
211
cli :: cli_warn(coercion_msg , class = " epidatr__epirange_week_coercion" )
213
212
collection_weeks <- reformat_epirange(collection_weeks , to_type = " day" )
You can’t perform that action at this time.
0 commit comments