Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sbalci/1700dae22bb345aafac735331969c549 to your computer and use it in GitHub Desktop.
Save sbalci/1700dae22bb345aafac735331969c549 to your computer and use it in GitHub Desktop.
# find all Rmd files in R projects
list_Rmd_files <- dir(here::here(), pattern = "*.Rmd")
exclude_Rmd_files <-
dir(here::here(), pattern = "^_|references|other")
list_Rmd_files <-
list_Rmd_files[!(list_Rmd_files %in% exclude_Rmd_files)]
list_Rmd_files <- unique(c("index.Rmd", list_Rmd_files))
# https://git.io/JuqOy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment