data-raw/sysdata.R

potrdt <- readr::read_delim("data-raw/dataset_portransp.csv",
                     ";", escape_double = FALSE, col_types = readr::cols(id = readr::col_character()),
                     na = "null", trim_ws = TRUE)
potrms <-
  paste0(
    paste0("(", potrdt$id, " or "),
    paste0(potrdt$idname,""),
    paste0(", ", potrdt$formatdate,")"),
    collapse = " "
  )
potrurl <- "http://www.portaltransparencia.gov.br/download-de-dados/"
usethis::use_data(potrdt,potrms,potrurl,internal = TRUE,overwrite = TRUE)
pompylio/portransp documentation built on Aug. 30, 2021, 1:23 p.m.