From 4415a421c454817728a164db77f0437572343168 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 19 Jul 2023 13:08:47 +0200 Subject: gnu: Add r-uchardet. * gnu/packages/cran.scm (r-uchardet): New variable. --- gnu/packages/cran.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index acd1eb0be5..b057a299d4 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -8009,6 +8009,28 @@ can be computed between character vectors while taking proper care of encoding or between integer vectors representing generic sequences.") (license license:gpl3+))) +(define-public r-uchardet + (package + (name "r-uchardet") + (version "1.1.1") + (source (origin + (method url-fetch) + (uri (cran-uri "uchardet" version)) + (sha256 + (base32 + "0m3xy807smqdxhkhd9cwrcf3ljlyvfmnkd7831qzpgcadam2jcdj")))) + (properties `((upstream-name . "uchardet"))) + (build-system r-build-system) + (native-inputs (list r-knitr)) + (home-page "https://artemklevtsov.gitlab.io/uchardet") + (synopsis "Universal character encoding detector") + (description + "This package provides R bindings to the uchardet encoding detector +library from Mozilla. It takes a sequence of bytes in an unknown character +encoding without any additional information, and attempts to get the encoding +of the text. All return names of the encodings are iconv-compatible.") + (license license:gpl2))) + (define-public r-ucminf (package (name "r-ucminf") -- cgit 1.4.1