Skip to content

Commit

Permalink
update of flags link
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatyi committed Jan 22, 2024
1 parent e95fbec commit 9b5054b
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 12 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: restatapi
Type: Package
Title: Search and Retrieve Data from Eurostat Database
Date: 2024-01-07
Version: 0.22.5
Date: 2024-01-22
Version: 0.22.6
Encoding: UTF-8
Authors@R: c(person("Mátyás", "Mészáros", email = "[email protected]", role = c("aut", "cre")),
person("Sebastian", "Weinand", role = "ctb"))
Expand Down
8 changes: 6 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# restatapi 0.22.6

- update of link for the possible flag values

# restatapi 0.22.5

- synchronization of debug messages
- synchronization of debug messages
- CRAN release

# restatapi 0.22.4

- updating tests because of missing dataset in the XML version of the Table of Contents


# restatapi 0.22.3

- additional check in the get_eurostat_dsd() and get_eurostat_codelist() for failing writing data to disk because of failing network connection
Expand Down
6 changes: 3 additions & 3 deletions R/get_eurostat_bulk.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#' @param keep_flags a logical value whether the observation status (flags) - e.g. "confidential",
#' "provisional", etc. - should be kept in a separate column or if they
#' can be removed. Default is \code{FALSE}. For flag values see:
#' \url{https://ec.europa.eu/eurostat/data/database/information}.
#' \url{https://ec.europa.eu/eurostat/api/dissemination/sdmx/2.1/codelist/ESTAT/OBS_STATUS/?compressed=false&format=TSV&lang=en}.
#' @param cflags a logical value whether the missing observations with flag 'c' - "confidential"
#' should be kept or not. Default is \code{FALSE}, in this case these observations dropped from the dataset. If this parameter
#' \code{TRUE} then all the flags and the suppressed observations with missing values are kept. In this case the parameter provided in \code{keep_flags} is set to \code{TRUE}.
Expand Down Expand Up @@ -128,8 +128,8 @@ get_eurostat_bulk <- function(id,
} else {
if (any(grepl(id,toc$code,ignore.case=TRUE))){
udate<-toc$lastUpdate[grepl(id,toc$code,ignore.case=TRUE)]
if (verbose) {message("get_eurostat_bulk - TOC rows: ",nrow(toc),"
\nget_eurostat_bulk - bulk url: ",toc$downloadLink.tsv[grepl(id,toc$code,ignore.case=TRUE)],
if (verbose) {message("get_eurostat_bulk - TOC rows: ",nrow(toc),
"\nget_eurostat_bulk - bulk url: ",toc$downloadLink.tsv[grepl(id,toc$code,ignore.case=TRUE)],
"\nget_eurostat_bulk - ndata rowcount in TOC: ",toc$values[grepl(id,toc$code,ignore.case=TRUE)])}
} else {
message(paste0("'",id,"' is not in the table of contents. Please check if the 'id' is correctly spelled."))
Expand Down
2 changes: 1 addition & 1 deletion R/get_eurostat_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#' @param keep_flags a logical whether the observation status (flags) - e.g. "confidential",
#' "provisional", etc. - should be kept in a separate column or if they
#' can be removed. Default is \code{FALSE}. For flag values see:
#' \url{https://ec.europa.eu/eurostat/web/main/data/database/information}.
#' \url{https://ec.europa.eu/eurostat/api/dissemination/sdmx/2.1/codelist/ESTAT/OBS_STATUS/?compressed=false&format=TSV&lang=en}.
#' @param cflags a logical whether the missing observations with flag 'c' - "confidential"
#' should be kept or not. Default is \code{FALSE}, in this case these observations dropped from the dataset. If this parameter
#' \code{TRUE} then the flags are kept and the parameter provided in \code{keep_flags} is not taken into account.
Expand Down
2 changes: 1 addition & 1 deletion R/get_eurostat_raw.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#' @param keep_flags a logical whether the observation status (flags) - e.g. "confidential",
#' "provisional", etc. - should be kept in a separate column or if they
#' can be removed. Default is \code{FALSE}. For flag values see:
#' \url{https://ec.europa.eu/eurostat/data/database/information}.
#' \url{https://ec.europa.eu/eurostat/api/dissemination/sdmx/2.1/codelist/ESTAT/OBS_STATUS/?compressed=false&format=TSV&lang=en}.
#' @param check_toc a boolean whether to check the provided \code{id} in the Table of Contents (TOC) or not. The default value
#' \code{FALSE}, in this case the base URL for the download link is retrieved from the configuration file.
#' If the value is \code{TRUE} then the TOC is downloaded and the \code{id} is checked in it. If it found then the download link
Expand Down
2 changes: 1 addition & 1 deletion man/get_eurostat_bulk.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_data.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_raw.Rd

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

0 comments on commit 9b5054b

Please sign in to comment.