Skip to content

Commit

Permalink
Merge branch 'archive_dn_cmh_data' into check_snake_case
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennit07 committed Aug 9, 2023
2 parents 04399a4 + 6e4fe23 commit 12c1b5f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions R/get_boxi_extract_path.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ get_boxi_extract_path <- function(
)) {
type <- match.arg(type)

year_dir <- get_year_dir(year, extracts_dir = TRUE)
if (type %in% c("DN", "CMH")) {
dir <- fs::path(get_slf_dir(), "Archived_data")
} else {
dir <- get_year_dir(year, extracts_dir = TRUE)
}

if (!check_year_valid(year, type)) {
return(get_dummy_boxi_extract_path())
Expand All @@ -53,11 +57,12 @@ get_boxi_extract_path <- function(
)

boxi_extract_path_csv_gz <- fs::path(
year_dir,
dir,
stringr::str_glue("{file_name}-20{year}.csv.gz")
)

boxi_extract_path_csv <- fs::path(
year_dir,
dir,
stringr::str_glue("{file_name}-20{year}.csv")
)

Expand Down

0 comments on commit 12c1b5f

Please sign in to comment.