| read_mbr4_latest | R Documentation |
Read MBR4.0 data from Martin Systems Webportal (As "tsv")
read_mbr4_latest(
url = Sys.getenv("MBR40_URL"),
target_dir = tempdir(),
locale = readr::locale(tz = "CET", decimal_mark = ".", grouping_mark = ","),
col_types = readr::cols(.default = readr::col_double(), zustand =
readr::col_character(), meldungen = readr::col_character(), Zeitstempel =
readr::col_datetime(format = "%Y-%m-%d %H:%M:%S")),
dbg = FALSE,
...
)
url |
url to download site (default: Sys.getenv("MBR4.0_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 |
target_dir |
directory to download data (default: tempdir()) |
locale |
locale (default: |
col_types |
col_types (default: |
dbg |
print debug messages (default: FALSE) |
... |
additional arguments passed to read_tsv |
tibble with imported MBR4.0 tsv data (~ last four weeks)
url_mbr40 <- Sys.getenv("MBR40_URL")
if(url_mbr40 != "") {
mbr4_data_latest <- read_mbr4_latest(url = url_mbr40)
str(mbr4_data_latest)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.