diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index a24588f2ad6..c0a13082aff 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -31,7 +31,7 @@ ;;; Copyright © 2020 Antoine Côté ;;; Copyright © 2020 Arun Isaac ;;; Copyright © 2020 Magali Lemes -;;; Copyright © 2020, 2021, 2022, 2023 Simon Tournier +;;; Copyright © 2020-2023, 2025 Simon Tournier ;;; Copyright © 2020 Aniket Patil ;;; Copyright © 2021 Marcel Schilling ;;; Copyright © 2021 Guillaume Le Vaillant @@ -103,6 +103,7 @@ #:use-module (gnu packages multiprecision) #:use-module (gnu packages networking) #:use-module (gnu packages node) + #:use-module (gnu packages ocr) #:use-module (gnu packages pcre) #:use-module (gnu packages pdf) #:use-module (gnu packages perl) @@ -55433,6 +55434,36 @@ or animation) or multiple time series; methods for spatial and temporal matching or aggregation, retrieving coordinates, print, summary, etc.") (license license:gpl2+))) +(define-public r-tesseract + (package + (name "r-tesseract") + (version "5.2.3") + (source + (origin + (method url-fetch) + (uri (cran-uri "tesseract" version)) + (sha256 + (base32 "181fbv1qhqxljr67phkrxahbfgsxa73gzq30zq0wvi38gzbfbnv8")))) + (properties `((upstream-name . "tesseract"))) + (build-system r-build-system) + (inputs (list tesseract-ocr + zlib)) + (propagated-inputs (list r-curl + r-digest + r-pdftools + r-rappdirs + r-rcpp)) + (native-inputs (list pkg-config + r-knitr + r-spelling)) + (home-page "https://github.com/ropensci/tesseract") + (synopsis "Open Source OCR Engine") + (description + "Bindings to @code{tesseract}: an optical character recognition (OCR) engine +that supports over 100 languages. The engine is highly configurable in order +to tune the detection algorithms and obtain the best possible results.") + (license license:asl2.0))) + (define-public r-gstat (package (name "r-gstat")