Learn R Programming

rdbnomics (version 0.4.7)

rdb_providers: Download list of DBnomics providers.

Description

rdb_providers downloads the list of providers from DBnomics.

Usage

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

Curl_handle or 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. If it is a curl_handle object then it is considered to be the argument handle of curl_fetch_memory. In the case of a list, the names of the object are the arguments names of curl_fetch_memory (except url of course). It means that curl_config = h is equivalent to curl_config = list(handle = h). For curl_fetch_memory arguments see curl_fetch. For available curl options see curl_options, names(curl_options()) and libcurl.

Value

A data.frame, a data.table or a vector.

Details

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

See Also

rdb_last_updates

Examples

Run this code
# NOT RUN {
rdb_providers()

rdb_providers(code = TRUE)
# }

Run the code above in your browser using DataLab