Download latest data as 'tsv' from Martin Systems Webportal and combine with archived ('tsv') on Nextcloud'
Usage
read_mbr4(
latest_url = Sys.getenv("MBR40_URL"),
archived_file = "MBR_export_",
archived_dir = "projects/MBR4.0/Exchange/Rohdaten/Online_export",
archived_url = Sys.getenv("NEXTCLOUD_URL"),
archived_user = Sys.getenv("NEXTCLOUD_USER"),
archived_pw = Sys.getenv("NEXTCLOUD_USER"),
target_dir = tempdir(),
dbg = FALSE,
...
)
Arguments
- latest_url
url to download latest .tsv file (default: Sys.getenv("MBR40_URL"), please use run edit_r_environ and define a key value pair "MBR40_URL" = "download-url-martin-systems") so that this function works automatically
- archived_file
file name/pattern of XLSX file (default: "MBR_export_")
- archived_dir
directory on Nextcloud containing file (default: "projects/MBR4.0/Exchange/Rohdaten/Online_export")
- archived_url
url of Nextcloud (default: Sys.getenv("NEXTCLOUD_URL"))
- archived_user
username of Nextcloud (default: Sys.getenv("NEXTCLOUD_USER"))
- archived_pw
password of Nextcloud (default: Sys.getenv("NEXTCLOUD_USER"))
- target_dir
directory to download data (default: tempdir())
- dbg
print debug messages (default: FALSE)
- ...
additional arguments passed to read_tsv
Examples
if (FALSE) {
mbr4_data <- read_mbr4()
str(mbr4_data)
}