Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sbalci/9c18a8bb1e387abb328d0ed319c22cda to your computer and use it in GitHub Desktop.
Save sbalci/9c18a8bb1e387abb328d0ed319c22cda 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/JuqqI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment