Learn R Programming

rdbnomics (version 0.4.7)

rdb_last_updates: Download informations about the last DBnomics updates.

Description

rdb_last_updates downloads informations about the last updates from DBnomics.

Usage

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

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 or a data.table.

Details

By default, the function returns a data.frame (or a data.table) containing the last 100 updates from DBnomics with additional informations.

See Also

rdb_providers

Examples

Run this code
# NOT RUN {
rdb_last_updates()

rdb_last_updates(all = TRUE)
# }

Run the code above in your browser using DataLab