R bindings to 'odiff', a fast SIMD pixel-by-pixel image comparison tool <https://github.com/dmtrKovalenko/odiff>. Compares PNG, JPEG, WEBP, TIFF and BMP images, plots and PDF pages with configurable thresholds, antialiasing detection and ignore regions. Provides 'testthat' expectations and snapshot testing (including for 'shinytest2' screenshots), batch and directory comparison, HTML, Markdown and JUnit reports, baseline approval and audit records. Requires the 'odiff' binary, which can be downloaded with install_odiff().
| Version: | 0.6.0 |
| Depends: | R (≥ 4.1.0) |
| Imports: | graphics, grDevices, grid, tools |
| Suggests: | base64enc, digest, ggplot2, jsonlite, knitr, lattice, magick, openssl, pdftools, png, ragg, rmarkdown, testthat (≥ 3.1.7), tibble, withr, xml2 |
| Published: | 2026-10-05 |
| DOI: | 10.32614/CRAN.package.odiffr |
| Author: | Ben Wolstenholme [aut, cre] |
| Maintainer: | Ben Wolstenholme <odiffr at benwolst.dev> |
| BugReports: | https://github.com/BenWolst/odiffr/issues |
| License: | MIT + file LICENSE |
| Copyright: | see file COPYRIGHTS |
| URL: | https://benwolst.github.io/odiffr/, https://github.com/BenWolst/odiffr |
| NeedsCompilation: | no |
| SystemRequirements: | odiff (>= 4.1.1) - https://github.com/dmtrKovalenko/odiff |
| Language: | en-GB |
| Materials: | README, NEWS |
| CRAN checks: | odiffr results |
| Reference manual: | odiffr.html , odiffr.pdf |
| Vignettes: |
Getting Started with Odiffr (source, R code) Comparing PDF outputs (source, R code) Using odiffr with shinytest2 (source, R code) Comparing web pages and htmlwidgets (source, R code) |
| Package source: | odiffr_0.6.0.tar.gz |
| Windows binaries: | r-devel: odiffr_0.5.1.zip, r-release: odiffr_0.5.1.zip, r-oldrel: odiffr_0.6.0.zip |
| macOS binaries: | r-release (arm64): odiffr_0.6.0.tgz, r-oldrel (arm64): odiffr_0.6.0.tgz, r-release (x86_64): odiffr_0.6.0.tgz, r-oldrel (x86_64): odiffr_0.6.0.tgz |
| Old sources: | odiffr archive |
Please use the canonical form https://CRAN.R-project.org/package=odiffr to link to this page.