From bd47bac502026b6a7db3204ac4a3284de64962e4 Mon Sep 17 00:00:00 2001 From: KKamel67 <58913912+KKamel67@users.noreply.github.com> Date: Tue, 19 Nov 2024 14:06:10 +0100 Subject: [PATCH] Add missing warn_for_status in NAMESPACE (#266) Co-authored-by: kemihak --- NAMESPACE | 1 + NEWS.md | 1 + R/API-methods.R | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NAMESPACE b/NAMESPACE index 8bedfaff..9107015d 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -90,6 +90,7 @@ importFrom(httr,content_type_json) importFrom(httr,http_status) importFrom(httr,stop_for_status) importFrom(httr,timeout) +importFrom(httr,warn_for_status) importFrom(lifecycle,deprecated) importFrom(memuse,Sys.meminfo) importFrom(methods,is) diff --git a/NEWS.md b/NEWS.md index a360c034..ac0b78bf 100644 --- a/NEWS.md +++ b/NEWS.md @@ -6,6 +6,7 @@ BUGFIXES : * `setSimulationPathAPI()` : encode URL before reading the data in simulation mode +* `api_get()` : add warn_for_status in importFrom section BREAKING CHANGES : * `setSimulationPathAPI()` : reads and returns the new converted study version format (ex : 9.0 => 900) diff --git a/R/API-methods.R b/R/API-methods.R index 9ba0e907..d1447a8b 100644 --- a/R/API-methods.R +++ b/R/API-methods.R @@ -14,7 +14,7 @@ #' #' @name API-methods #' -#' @importFrom httr GET accept_json stop_for_status content add_headers timeout +#' @importFrom httr GET accept_json stop_for_status warn_for_status content add_headers timeout #' #' @examples #' \dontrun{