Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions R/get_eurostat_json.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
#' in the Eurostat website. We hope you never encounter them.
#'
#' @param proxy Use proxy, TRUE or FALSE (default).
#' @param ask_special_io Whether to ask the user about halting and using
#' `iotables::iotables_download()` when the requested table is a special
#' input-output table. TRUE (default) or FALSE.
#' @inheritParams get_eurostat
#' @inheritDotParams httr2::req_proxy
#' @inherit get_eurostat references
Expand Down Expand Up @@ -93,15 +96,18 @@ get_eurostat_json <- function(id,
filters = NULL,
type = "code",
lang = "en",
ask_special_io = TRUE,
stringsAsFactors = FALSE,
proxy = FALSE,
...) {

## Special products that must be built to matrix
## User is prompted to halt and use iotables::iotables_download()
user_want_stop <- special_id_values(id)
if (user_want_stop) {
return(NULL)
if(ask_special_io){
user_want_stop <- special_id_values(id)
if (user_want_stop) {
return(NULL)
}
}

# Check if you have access to ec.europe.eu.
Expand Down
36 changes: 10 additions & 26 deletions man/get_eurostat_json.Rd

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