From b2587f555c1b51e0f64a97f3997032c8ed2294b8 Mon Sep 17 00:00:00 2001 From: JBGruber Date: Wed, 9 Oct 2024 16:54:22 +0200 Subject: [PATCH] fix bug #21 --- R/lib.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/R/lib.R b/R/lib.R index 413be1b..0fff03d 100644 --- a/R/lib.R +++ b/R/lib.R @@ -80,6 +80,9 @@ make_req <- function(req_data, server, endpoint, perform = TRUE) { perform_reqs <- function(reqs, verbose) { pb <- FALSE + model <- purrr::map_chr(reqs, c("body", "data", "model")) |> + unique() + if (verbose) { pb <- list( clear = FALSE, @@ -88,9 +91,6 @@ perform_reqs <- function(reqs, verbose) { ) } - model <- purrr::map_chr(reqs, c("body", "data", "model")) |> - unique() - op <- options(cli.progress_show_after = 0) on.exit(options(op)) resps <- httr2::req_perform_parallel(