photo_rmd: Create an RMarkdown document from a series of photos

Description Usage Arguments Examples

Description

Create an RMarkdown document from a series of photos

Usage

1
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

1
2
3
4
5
6
7
8
9
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 June 7, 2019, 5:10 a.m.