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
)
file or directory path to figures of interest
file or directory path to compare .path_base to (leave as NULL to compare to repo version)
file extensions to include in comparison (only pdf and png allowed)
Logical. Should outputs be displayed side by side?
Logical. Should all figures be open when the page loads? (Set to FALSE for slow loading pages with many figures.)