| photo_rmd | R Documentation |
Create an RMarkdown document from a series of photos
photo_rmd(f, title = "Day 1", captions = NULL)
f |
File path to photo(s). |
title |
The title of the document or chapter |
captions |
A character vector of captions |
f = geotagged_photo_paths()
photo = photos_sf(f)
rmd_text = photo_rmd(photo$SourceFile)
writeLines(rmd_text, file.path(tempdir(), "photo.Rmd"))
if(require(rmarkdown)) {
rmarkdown::render(file.path(tempdir(), "photo.Rmd"))
}
# file.edit(file.path(tempdir(), "photo.Rmd"))
# browseURL(file.path(tempdir(), "photo.html"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.