Skip to content

Commit 6b76bab

Browse files
committed
bug: fix epirange bad formatting
1 parent 796f07a commit 6b76bab

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

R/epidatacall.R

+7-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,13 @@ request_arguments <-
8686
for (name in names(all_params)) {
8787
v <- all_params[[name]]
8888
if (!is.null(v)) {
89-
formatted_params[[name]] <- format_list(v)
89+
if (inherits(v, "EpiRange")) {
90+
formatted_params[[name]] <- format_item(v)
91+
} else if (is.list(v)) {
92+
formatted_params[[name]] <- format_list(v)
93+
} else {
94+
formatted_params[[name]] <- format_item(v)
95+
}
9096
}
9197
}
9298
formatted_params

0 commit comments

Comments
 (0)