gnu: Add r-readtext.

* gnu/packages/cran.scm (r-readtext): New variable.
This commit is contained in:
Lars-Dominik Braun 2021-03-15 10:29:26 +01:00
parent 6f688733b5
commit 5d719fe608
No known key found for this signature in database
GPG key ID: 421377011A378446

View file

@ -27787,3 +27787,42 @@ (define-public r-antiword
xml based @code{docx} format. Use the @code{xml2} package to read the xml based @code{docx} format. Use the @code{xml2} package to read the
latter.") latter.")
(license license:gpl2))) (license license:gpl2)))
(define-public r-readtext
(package
(name "r-readtext")
(version "0.80")
(source
(origin
(method url-fetch)
(uri (cran-uri "readtext" version))
(sha256
(base32
"0q8ajnp99fwvh14ppkm2z3gqwdwmjrvxvsfb4q7ad0dhkqric05y"))))
(properties `((upstream-name . "readtext")))
(build-system r-build-system)
(propagated-inputs
`(("r-antiword" ,r-antiword)
("r-data-table" ,r-data-table)
("r-digest" ,r-digest)
("r-httr" ,r-httr)
("r-jsonlite" ,r-jsonlite)
("r-pdftools" ,r-pdftools)
("r-readods" ,r-readods)
("r-readxl" ,r-readxl)
("r-streamr" ,r-streamr)
("r-stringi" ,r-stringi)
("r-striprtf" ,r-striprtf)
("r-tibble" ,r-tibble)
("r-xml2" ,r-xml2)))
(native-inputs `(("r-knitr" ,r-knitr)))
(home-page
"https://github.com/quanteda/readtext")
(synopsis
"Import and Handling for Plain and Formatted Text Files")
(description
"This package provides functions for importing and handling text files
and formatted text files with additional meta-data, such including @code{.csv},
@code{.tab}, @code{.json}, @code{.xml}, @code{.html}, @code{.pdf}, @code{.doc},
@code{.docx}, @code{.rtf}, @code{.xls}, @code{.xlsx}, and others.")
(license license:gpl3)))