[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
12/28: gnu: Add r-ndjson.
From: |
guix-commits |
Subject: |
12/28: gnu: Add r-ndjson. |
Date: |
Mon, 15 Mar 2021 05:55:29 -0400 (EDT) |
lbraun pushed a commit to branch master
in repository guix.
commit a64e355ea680bff5f6047011d936e3a3576d62c9
Author: Lars-Dominik Braun <ldb@leibniz-psychology.org>
AuthorDate: Mon Mar 15 10:06:08 2021 +0100
gnu: Add r-ndjson.
* gnu/packages/cran.scm (r-ndjson): New variable.
---
gnu/packages/cran.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 0ffc904..75c11c7 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -27568,3 +27568,50 @@ text but not always easily handled by analysis
algorithms. The
(description
"Extracts plain text from @dfn{Rich Text Format} (RTF) file.")
(license license:expat)))
+
+(define-public r-ndjson
+ (package
+ (name "r-ndjson")
+ (version "0.8.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (cran-uri "ndjson" version))
+ (sha256
+ (base32
+ "0lvzbgfi1sg4kya1mvv67z14qk3vz9q57x22qh57xq8ampdkg812"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; unvendor gzstream
+ (for-each delete-file '("src/gzstream.cpp" "src/gzstream.h"))
+ #t))))
+ (properties `((upstream-name . "ndjson")))
+ (build-system r-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'use-system-gzstream
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "src/Makevars"
+ (("PKG_LIBS = " all)
+ (string-append all "-lgzstream ")))
+ #t)))))
+ (inputs `(("zlib" ,zlib) ("gzstream" ,gzstream)))
+ (propagated-inputs
+ `(("r-data-table" ,r-data-table)
+ ("r-rcpp" ,r-rcpp)
+ ("r-tibble" ,r-tibble)))
+ (home-page "https://gitlab.com/hrbrmstr/ndjson")
+ (synopsis
+ "Wicked-Fast @dfn{Streaming JSON} (ndjson) Reader")
+ (description
+ "@dfn{Streaming JSON} (ndjson) has one JSON record per-line and many
+modern ndjson files contain large numbers of records. These constructs may not
+be columnar in nature, but it is often useful to read in these files and
+\"flatten\" the structure out to enable working with the data in an R
+@code{data.frame}-like context. Functions are provided that make it possible
+to read in plain ndjson files or compressed (@code{gz}) ndjson files and either
+validate the format of the records or create \"flat\" @code{data.table}
+structures from them.")
+ (license license:expat)))
- branch master updated (d059485 -> c3163fe), guix-commits, 2021/03/15
- 02/28: gnu: Add r-qdapregex., guix-commits, 2021/03/15
- 03/28: gnu: Add r-mgsub., guix-commits, 2021/03/15
- 04/28: gnu: Add r-dtt., guix-commits, 2021/03/15
- 06/28: gnu: Add r-syuzhet., guix-commits, 2021/03/15
- 08/28: gnu: Add r-english., guix-commits, 2021/03/15
- 11/28: gnu: gzstream: Add PIC flag., guix-commits, 2021/03/15
- 12/28: gnu: Add r-ndjson.,
guix-commits <=
- 14/28: gnu: Add r-readods., guix-commits, 2021/03/15
- 07/28: gnu: Add r-lexicon., guix-commits, 2021/03/15
- 01/28: gnu: Add r-esc., guix-commits, 2021/03/15
- 09/28: gnu: Add r-textclean., guix-commits, 2021/03/15
- 10/28: gnu: Add r-striprtf., guix-commits, 2021/03/15
- 13/28: gnu: Add r-streamr, guix-commits, 2021/03/15
- 18/28: gnu: Add r-readtext., guix-commits, 2021/03/15
- 16/28: gnu: Add r-pdftools., guix-commits, 2021/03/15
- 05/28: gnu: Add r-textshape., guix-commits, 2021/03/15
- 15/28: gnu: Add r-qpdf., guix-commits, 2021/03/15