diff options
author | Lars-Dominik Braun <ldb@leibniz-psychology.org> | 2021-03-15 10:21:23 +0100 |
---|---|---|
committer | Lars-Dominik Braun <ldb@leibniz-psychology.org> | 2021-03-15 10:53:10 +0100 |
commit | 275b7987c0baf66bed2c64c044975b1c3719b22b (patch) | |
tree | 289242b8501d37f6ccc80b8908e2da68d4230a7c /gnu/packages/cran.scm | |
parent | 52c70fb66ea82c8c4bbc555c361a42ebd839941c (diff) | |
download | guix-275b7987c0baf66bed2c64c044975b1c3719b22b.tar.gz |
gnu: Add r-pdftools.
* gnu/packages/cran.scm (r-pdftools): New variable.
Diffstat (limited to 'gnu/packages/cran.scm')
-rw-r--r-- | gnu/packages/cran.scm | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 877396b996..f7d170ef63 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -27715,3 +27715,33 @@ split, combine, and compress. This package interfaces directly to the @code{qpdf} does not read actual content from PDF files: to extract text and data you need the @code{pdftools} package.") (license license:asl2.0))) + +(define-public r-pdftools + (package + (name "r-pdftools") + (version "2.3.1") + (source + (origin + (method url-fetch) + (uri (cran-uri "pdftools" version)) + (sha256 + (base32 + "01i5g2mjkshis0zlm7lrvi7kkzl4dn3if1hzwkgzf9n2mi33ndsx")))) + (properties `((upstream-name . "pdftools"))) + (build-system r-build-system) + (inputs + `(("zlib" ,zlib) + ("poppler" ,poppler))) + (propagated-inputs + `(("r-qpdf" ,r-qpdf) ("r-rcpp" ,r-rcpp))) + (native-inputs `(("pkg-config" ,pkg-config))) + (home-page + "https://docs.ropensci.org/pdftools/") + (synopsis + "Text Extraction, Rendering and Converting of PDF Documents") + (description + "Utilities based on @code{libpoppler} for extracting text, fonts, +attachments and metadata from a PDF file. Also supports high quality rendering +of PDF documents into PNG, JPEG, TIFF format, or into raw bitmap vectors for +further processing in R.") + (license license:expat))) |