diff options
author | Lars-Dominik Braun <ldb@leibniz-psychology.org> | 2021-03-15 10:29:26 +0100 |
---|---|---|
committer | Lars-Dominik Braun <ldb@leibniz-psychology.org> | 2021-03-15 10:53:12 +0100 |
commit | 5d719fe6087a5412a0b17d0e0c113488b3329c32 (patch) | |
tree | 2a7e2af375b094abf98bf9ead4c196381ee3f12a /gnu/packages | |
parent | 6f688733b5597d7f2c9727d06a63f69a4329e1a2 (diff) |
gnu: Add r-readtext.
* gnu/packages/cran.scm (r-readtext): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/cran.scm | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 6d95df6e62..24eb22e638 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -27787,3 +27787,42 @@ documents. The utility only supports the old @code{doc} format, not the new xml based @code{docx} format. Use the @code{xml2} package to read the latter.") (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))) |