make_report: Produces report table

Description Usage Arguments Details Value Examples

View source: R/reporter.R

Description

Produces table with additional information concerning downloaded data.

Usage

1
make_report(download_log, path, SUCCESS = "success")

Arguments

download_log

metadata about downloaded series

path

path to specific day

SUCCESS

string marker for success in download_log tibble

Details

Several metrics to detect potential download errors.

Value

data.frame

Examples

 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)

kassandra-ru/kassandr documentation built on Jan. 1, 2022, 7:39 a.m.