From 97c7722066f5aa72e1a10e43a545f0beb4da125b Mon Sep 17 00:00:00 2001 From: Yannik Buhl Date: Fri, 27 Sep 2024 20:30:00 +0200 Subject: [PATCH] Update gen_api.R --- R/gen_api.R | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/R/gen_api.R b/R/gen_api.R index e79791b..9bbfb42 100644 --- a/R/gen_api.R +++ b/R/gen_api.R @@ -20,9 +20,7 @@ gen_genesis_api <- function(endpoint, overwrite_url, ...) { - url <- ifelse(is.null(overwrite_url), - "https://www-genesis.destatis.de/genesisWS/rest/2020", - overwrite_url) + url <- "https://www-genesis.destatis.de/genesisWS/rest/2020" user_agent <- "https://github.com/CorrelAid/restatis" @@ -75,9 +73,7 @@ gen_regio_api <- function(endpoint, overwrite_url, ...) { - url <- ifelse(is.null(overwrite), - "https://www.regionalstatistik.de/genesisws/rest/2020/", - overwrite_url) + url <- "https://www.regionalstatistik.de/genesisws/rest/2020/" httr2::request(url) %>% httr2::req_user_agent("https://github.com/CorrelAid/restatis") %>% @@ -112,9 +108,7 @@ gen_zensus_api <- function(endpoint, overwrite_url, ...) { - url <- ifelse(is.null(overwrite_url), - "https://ergebnisse.zensus2022.de/api/rest/2020", - overwrite_url) + url <- "https://ergebnisse.zensus2022.de/api/rest/2020" user_agent <- "https://github.com/CorrelAid/restatis"