Download all statistics

download_statistics(
  path,
  watchdog,
  access_date = Sys.Date(),
  method = "curl",
  extra = "-L"
)

Arguments

path

path to raw data folde

watchdog

watchdog file Structure of watchdog: url - url of file to download, may be NA file_raw - name for local raw file file_main - name for local processed file processing - name of processing function univariate - TRUE/FALSE frequency - 4/12/etc comment - self explanatory :)

access_date

access date

method

for downloading files, passed to `download.file()`: "curl", "wget", "libcurl", "auto", "internal", "wininet"

extra

options for downloading files, passed to `download.file()`: used for "wget" and "curl" methods

Value

downloads log

Details

Download all statistics

Examples

path = tempdir() mini_watchdog = tibble::tibble(url = "http://www.gks.ru/free_doc/new_site/prices/potr/I_ipc.xlsx", file_raw = "i_ipc.xlsx", file_main = "i_ipc.csv", processing = "convert_i_ipc_xlsx") download_log_new = download_statistics(path, mini_watchdog)
#> Downloading http://www.gks.ru/free_doc/new_site/prices/potr/I_ipc.xlsx.
#> New names: #> * `` -> ...2 #> * `` -> ...3 #> * `` -> ...4 #> * `` -> ...5 #> * `` -> ...6 #> * ...