add checks to read/write csv and refactor

This commit is contained in:
2021-08-10 21:49:06 +02:00
parent 605e5e976a
commit 6e9fe12784
3 changed files with 18 additions and 8 deletions
-7
View File
@@ -61,10 +61,3 @@ fetch_all <- function(download_dir="inst/records/", create=FALSE) {
# if successful, set progressbar to 100%
setTimerProgressBar(pb, 250)
}
stop_dir_not_creatable <- function(cond) {
# currently this has call: dir.create(download_dir)
# do we want to change this to fetch_all(...) ?
cond$message <- "Directory does not exist and can't be created. Probably because the path is not writeable."
stop(cond)
}