rdb_last_updates: Download informations about the last DBnomics updates.

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

View source: R/rdb_last_updates.R

Description

rdb_last_updates downloads informations about the last updates from DBnomics.

Usage

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

Arguments

all

Logical (default FALSE). If TRUE, then the full dataset of the last updates is retrieved.

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 last 100 updates from DBnomics with additional informations.

Value

A data.table.

Author(s)

Sebastien Galais

See Also

rdb_providers, rdb_datasets, rdb_dimensions

Examples

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

rdb_last_updates(all = TRUE)

rdb_last_updates(use_readLines = TRUE)

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

## End(Not run)

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