photobook: Create photobook index

View source: R/photobook.R

photobookR Documentation

Create photobook index

Description

Create photobook index

Usage

photobook(photo, index = photobook_index(), groups = NULL,
  n_groups = 3, captions = NULL, dir_out = tempdir())

Arguments

photo

An sf object created by photos_sf

index

A character string produced by photobook_index

groups

Character vector the same length as nrow(photo)

n_groups

The number of groups if date_time_cut is not provided

captions

A character vector of captions

dir_out

Directory where files should be saved, tempdir() by default

Examples

f = geotagged_photo_paths()

photo = photos_sf(f)
photobook(photo)

# file.edit(file.path(tempdir(), "index.Rmd"))
setwd(tempdir())
list.files()
bookdown::render_book("index.Rmd")
browseURL("_book/index.html")


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