refactor project structure
This commit is contained in:
@@ -36,9 +36,12 @@ fetch_batch <- function(offset, download_dir) {
|
||||
#' This fetches all available records of the 19th legislative period of the german Bundestag.
|
||||
#'
|
||||
#' @param download_dir character
|
||||
#' @param create bool
|
||||
#'
|
||||
#' if create is TRUE, the directory given in download_dir is created
|
||||
#'
|
||||
#' @export
|
||||
fetch_all <- function(download_dir="records/", create=FALSE) {
|
||||
fetch_all <- function(download_dir="data/records/", create=FALSE) {
|
||||
# check if download_dir path is a directory path
|
||||
if (str_sub(download_dir, -1) != .Platform$file.sep)
|
||||
download_dir <- str_c(download_dir, .Platform$file.sep)
|
||||
|
||||
Reference in New Issue
Block a user