photo_rmd: Create an RMarkdown document from a series of photos

View source: R/photobook.R

photo_rmdR Documentation

Create an RMarkdown document from a series of photos

Description

Create an RMarkdown document from a series of photos

Usage

photo_rmd(f, title = "Day 1", captions = NULL)

Arguments

f

File path to photo(s).

title

The title of the document or chapter

captions

A character vector of captions

Examples

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"))

Robinlovelace/photomapr documentation built on Oct. 21, 2022, 7:21 a.m.