Description Usage Arguments Details Value Examples
Produces table with additional information concerning downloaded data.
1 | make_report(download_log, path, SUCCESS = "success")
|
download_log |
metadata about downloaded series |
path |
path to specific day |
SUCCESS |
string marker for success in download_log tibble |
Several metrics to detect potential download errors.
data.frame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | info = Sys.info() # получаем информацию о системе
if (info[1] == "Linux") {
docxtractr::set_libreoffice_path("/usr/bin/libreoffice") # ubuntu or macos
Sys.setenv(LD_LIBRARY_PATH = "/usr/lib/libreoffice/program/") # ubuntu protection against libreglo.so not found
}
if (info[1] == "Windows") {
Sys.setenv("TAR" = "internal") # if install_github() fails on Windows OS
docxtractr::set_libreoffice_path("C:/Program Files/LibreOffice/program/soffice.exe") # windows
}
path = tempdir()
path_day = paste0(path, "/", Sys.Date(), "/") # add current date to path
dir.create(path_day)
# download_log_new = download_statistics(path_day, watchdog)
# report_table = make_report(download_log_new, path_day)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.