Skip to content

Commit

Permalink
correction of timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatyi committed Feb 22, 2024
1 parent 0adcd75 commit 0abbcde
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion R/extract_dsd.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#' warning=function(w){
#' message("Unable to download the xml file.\n",w)})
#' if (exists("dsd_xml")) extract_dsd("FREQ",dsd_xml)
#' options(timeout=2)
#' options(timeout=60)
#' }

extract_dsd<-function(concept=NULL,dsd_xml=NULL,lang="en"){
Expand Down
3 changes: 1 addition & 2 deletions R/get_compressed_sdmx.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@
#' @details It is a sub-function to use in the \code{\link{get_eurostat_raw}} and the \code{\link{get_eurostat_data}} functions.
#' @return an xml class object with SDMX tags extracted and read from the downloaded file.
#' @examples
#' if (!(grepl("amzn|-aws|-azure ",Sys.info()['release']))) options(timeout=2)
#' id<-"agr_r_milkpr"
#' url<-paste0("https://ec.europa.eu/eurostat/api/dissemination/sdmx/2.1/data/",
#' id,
#' "?format=sdmx_2.1_structured&compressed=true")
#' options(timeout=2)
#' if (!(grepl("amzn|-aws|-azure ",Sys.info()['release']))) options(timeout=2)
#' sdmx_xml<-get_compressed_sdmx(url,verbose=TRUE,format="gz")
#' options(timeout=60)

Expand Down
2 changes: 1 addition & 1 deletion R/get_eurostat_codelist.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#'
#' @references For more information see the detailed documentation of the \href{https://wikis.ec.europa.eu/display/EUROSTATHELP/API+SDMX+2.1+-+metadata+query}{API}.
#' @examples
#' options(timeout=2)
#' if (!(grepl("amzn|-aws|-azure ",Sys.info()['release']))) options(timeout=2)
#' get_eurostat_codelist("freq",lang="de",cache=FALSE,verbose=TRUE)
#' options(timeout=60)

Expand Down
2 changes: 1 addition & 1 deletion R/get_eurostat_toc.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
#' }
#' }
#' \donttest{
#' options(timeout=2)
#' if (!(grepl("amzn|-aws|-azure ",Sys.info()['release']))) options(timeout=2)
#' toc_xml<-get_eurostat_toc(cache=FALSE,verbose=TRUE)
#' head(toc_xml)
#' toc_txt<-get_eurostat_toc(mode="txt", lang="de")
Expand Down
2 changes: 1 addition & 1 deletion R/search_eurostat_toc.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#' }
#' }
#' \donttest{
#' options(timeout=2)
#' if (!(grepl("amzn|-aws|-azure ",Sys.info()['release']))) options(timeout=2)
#' head(search_eurostat_toc("energy",verbose=TRUE))
#' nrow(search_eurostat_toc("energy"))
#' head(search_eurostat_toc("energie",lang="de",ignore.case=TRUE))
Expand Down
2 changes: 1 addition & 1 deletion man/extract_dsd.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions man/get_compressed_sdmx.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/get_eurostat_codelist.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/get_eurostat_toc.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/search_eurostat_toc.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0abbcde

Please sign in to comment.