This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## this snippet was the original gist but the Rmd solution below is even nicer | |
| ## auto-generate a visual index as README.md in current working directory | |
| fig_files <- list.files(pattern = "jpg$") # change to png$ as needed! | |
| writeLines(paste0(fig_files, "\n", | |
| "\n\n"), "README.md") |