Skip to content

Commit

Permalink
Merge pull request #28 from scarnecchia/DEV-17
Browse files Browse the repository at this point in the history
DEV-17: Fixed error wherein get_inputfiles() would pull in backup files
  • Loading branch information
scarnecchia authored May 6, 2022
2 parents 1145f21 + 478b35a commit 9e0995a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ get_data <- function(url, elements) {
}

get_inputfile <- function(.file) {
path <- fs::dir_info("inputfiles", type = "file") %>%
path <- fs::dir_info("inputfiles", type = "file", regexp=".file") %>%
dplyr::filter(!stringr::str_detect(path, ".bak")) %>%
dplyr::select(path, change_time, birth_time) %>%
dplyr::filter(stringr::str_detect(path, .file)) %>%
dplyr::filter(birth_time == max(birth_time)) %>%
Expand Down

0 comments on commit 9e0995a

Please sign in to comment.