R/dl_mdbzip.R
dl_mdbzip.Rd
The extracted file will be kept in destdir
.
If a file with the expected filename already exists in destdir
, this file
will be used.
To force a fresh download, remove or rename the file in destdir
.
dl_mdbzip(
resource_id,
destdir = here::here("data"),
dateformat = "%m-%d-%Y",
as.is = TRUE,
verbose = get_tsc_verbose()
)
The CKAN resource ID of a zipped Access DB.
The local destination directory for the extracted file,
will be created if not existing. Default: here::here("data")
.
The parameter dateformat for Hmisc::mdb.get()
,
default: %Y-%m-%d
.
The parameter as.is
for Hmisc::mdb.get()
, default: TRUE.
Whether to show verbose messages.
Default: get_tsc_verbose
.
The Hmisc::mdb.get
connection.
Other ckan:
ckan_works()
,
upload_file_to_ckan()
,
upload_to_ckan()
if (FALSE) {
ckanr::ckanr_setup(
url = Sys.getenv("CKAN_URL"), key = Sys.getenv("CKAN_API_KEY")
)
tfa_data <- dl_mdbzip("66efb68d-8f05-4bfc-af14-5d1a381d0cf2", verbose = TRUE)
}