Last updated on 2022-04-24 03:53:06 CEST.
Package | ERROR | OK |
---|---|---|
danstat | 1 | 11 |
Current CRAN status: ERROR: 1, OK: 11
Version: 0.2.0
Check: examples
Result: ERROR
Running examples in ‘danstat-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: get_data
> ### Title: Get data for a particular table and variable selection
> ### Aliases: get_data
>
> ### ** Examples
>
> # Get data from table "folk1c" for selected values of variables "ieland" and "køn"
> # and all time periods available.
>
> # The "ieland" variable is filtered for Denmark (id = 5000) and Bulgaria (id = 5128)
> # and the "køn" variable id filtered for Men (id = 1) and Women (id = 2).
> # The "tid" variable is unfiltered, i.e. selects all available time periods
> # See get_table_metadata(table_id = "folk1c", variables_only = TRUE) for variable codes and values.
>
> variables <- list(list(code = "ieland", values = c(5100, 5128)),
+ list(code = "køn", values = c(1,2)),
+ list(code = "tid", values = NA))
>
> data <- get_data("folk1c", variables)
Error in curl::curl_fetch_memory(url, handle = handle) :
Timeout was reached: [api.statbank.dk] Resolving timed out after 10000 milliseconds
Calls: get_data ... request_fetch -> request_fetch.write_memory -> <Anonymous>
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc