From 5e65cd17388b8121eae6f161c982ab1f582be086 Mon Sep 17 00:00:00 2001 From: salvafern Date: Mon, 17 Jan 2022 16:39:01 +0100 Subject: [PATCH] small fix + add httr to Imports --- DESCRIPTION | 3 ++- R/client.R | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 8aec00a..8f0a356 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -52,7 +52,8 @@ Imports: sf, janitor, curl, - jsonlite + jsonlite, + httr URL: https://github.com/EMODnet/EMODnetWFS BugReports: https://github.com/EMODnet/EMODnetWFS/issues VignetteBuilder: knitr diff --git a/R/client.R b/R/client.R index 0631f56..99d1a16 100644 --- a/R/client.R +++ b/R/client.R @@ -101,7 +101,6 @@ check_service <- function(request){ # If no HTTP status, something else is wrong }else if(!httr::http_error(request)){ usethis::ui_info("HTTP Status: {crayon::green(httr::http_status(request)$message)}") - create_client() usethis::ui_stop("An exception has occured. Please raise an issue in {packageDescription('EMODnetWFS')$BugReports}") }