Goal: - Import the newest file (.csv) from a local directory into R
Goal Details: - A csv file is uploaded to a folder dail
A more efficient solution using dplyr/magrittr
dplyr
magrittr
pacman::p_load(magrittr) path <- list.files(path = directory, pattern = "csv$", full.names = TRUE) %>% extract(which.max(file.mtime(.)))