rdb_providers: Download list of DBnomics providers.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/rdb_providers.R

Description

rdb_providers downloads the list of providers from DBnomics.

Usage

1
2
3
4
5
rdb_providers(
  code = FALSE,
  use_readLines = getOption("rdbnomics.use_readLines"),
  curl_config = getOption("rdbnomics.curl_config")
)

Arguments

code

Logical (default FALSE). If TRUE, then only the providers are returned in a vector.

use_readLines

Logical (default FALSE). If TRUE, then the data are requested and read with the base function readLines i.e. through the default R internet connection. This can be used to get round the error Could not resolve host: api.db.nomics.world.

curl_config

Named list (default NULL). If not NULL, it is used to configure a proxy connection. This configuration is passed to the function curl_fetch_memory of the package curl. A temporary curl_handle object is created internally with arguments equal to the provided list in curl_config.
For curl_fetch_memory arguments see curl_fetch. For available curl options see curl_options, names(curl_options()) and libcurl.

Details

By default, the function returns a data.table containing the list of providers from DBnomics with additional informations such as the region, the website, etc.

Value

A data.table or a vector.

Author(s)

Sebastien Galais

See Also

rdb_last_updates, rdb_datasets, rdb_dimensions, rdb_series

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
rdb_providers()

rdb_providers(code = TRUE)

rdb_providers(use_readLines = TRUE)

rdb_providers(curl_config = list(proxy = "<proxy>", proxyport = <port>))

## End(Not run)

rdbnomics documentation built on Oct. 26, 2020, 1:06 a.m.