download_statistics.Rd
Download all statistics
download_statistics( path, watchdog, access_date = Sys.Date(), method = "curl", extra = "-L" )
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 |
downloads log
Download all statistics
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)#>#>#> #> #> #> #> #>