Skip to content

Instantly share code, notes, and snippets.

@jennybc
Last active April 3, 2022 19:21
Show Gist options
  • Save jennybc/0239f65633e09df7e5f4 to your computer and use it in GitHub Desktop.
Save jennybc/0239f65633e09df7e5f4 to your computer and use it in GitHub Desktop.
Generate a photo-gallery README for a directory of figs
@hadley
Copy link

hadley commented Feb 23, 2015

I think this might be better as an Rmarkdown block:

`�``{r, results ="asis"}
fig_files <- dir(pattern = "jpg$") 
paste0("* ", fig_files, " ![]](", fig_files, ")\n")
`�``

@jennybc
Copy link
Author

jennybc commented Apr 29, 2015

Good idea @hadley! I hate how I don't get notified of comments 😦 but glad to have eventually seen this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment