download_marketdata: Download datasets

View source: R/download-data.R

download_marketdataR Documentation

Download datasets

Description

Download datasets for a given template.

Usage

download_marketdata(template, cache_folder = cachedir(), do_cache = TRUE, ...)

Arguments

template

the template name

cache_folder

Location of cache folder (default = cachedir())

do_cache

a logical indicating if the existing file (previously downloaded) should be used or replaced.

...

additional arguments

Value

a string with the file path of downloaded file or NULL if download fails.

This function downloads data sets for those templates that specifies a downloader attribute. If dest is not provided, cache_folder is used and a file with template id is saved inside it.

Examples

## Not run: 
fname <- download_marketdata("CDIIDI")

## End(Not run)


rb3 documentation built on April 14, 2023, 5:10 p.m.