Generate a html document showing two versions of a figure (pdf or png). If two paths are provided, the local versions of both will be used. If only one path is provided, the comparison will show the local versus last checked in version.

compareFigures(
  .path_current,
  .path_previous = NULL,
  .file_types = "pdf",
  .side_by_side = TRUE,
  .show_on_load = TRUE
)

Arguments

.path_current

file or directory path to figures of interest

.path_previous

file or directory path to compare .path_base to (leave as NULL to compare to repo version)

.file_types

file extensions to include in comparison (only pdf and png allowed)

.side_by_side

Logical. Should outputs be displayed side by side?

.show_on_load

Logical. Should all figures be open when the page loads? (Set to FALSE for slow loading pages with many figures.)