View source: R/download_cached_file.R
download_cached_file | R Documentation |
Download a predefined set of time series.
download_cached_file(username, api_key, file_to_download, target = NULL)
username |
Your dataservice user name |
api_key |
character Your API key. An API key is needed if accessing non-public timeseries. If downloading public timeseries parameter can be omitted. |
file_to_download |
The name of the file to retrieve. |
target |
Path to the location, at which to store the file. If NULL, the file will be saved to the working directory. |
f <- download_cached_file("kofdatapkg", "313984fcd9f343d3961891319b0ed321",
"empty.txt",file.path(tempdir(),"empty.txt"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.