[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: Add r-excelr.
From: |
guix-commits |
Subject: |
branch master updated: gnu: Add r-excelr. |
Date: |
Wed, 09 Feb 2022 08:25:29 -0500 |
This is an automated email from the git hooks/post-receive script.
rekado pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 74de5862f4 gnu: Add r-excelr.
74de5862f4 is described below
commit 74de5862f4325f58d4b682134c8627c6e6bc3056
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed Feb 9 14:24:00 2022 +0100
gnu: Add r-excelr.
* gnu/packages/cran.scm (r-excelr): New variable.
---
gnu/packages/cran.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index c2c4d975fd..6338cb7853 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -3997,6 +3997,54 @@ T distribution. There is only one exported function,
@code{e_trunct},
which should be seen for details.")
(license license:expat)))
+(define-public r-excelr
+ (package
+ (name "r-excelr")
+ (version "0.4.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (cran-uri "excelR" version))
+ (sha256
+ (base32 "1pb4sy54zjv5vrh7gjjv7qlpab74km6mfsmfyl0yhmr0jx01hrw0"))
+ (snippet
+ '(delete-file "inst/htmlwidgets/lib/jexcel/js/jexcel.min.js"))))
+ (properties `((upstream-name . "excelR")))
+ (build-system r-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'process-javascript
+ (lambda* (#:key inputs #:allow-other-keys)
+ (with-directory-excursion "inst/htmlwidgets/lib/jexcel/js/"
+ (let ((source (assoc-ref inputs "js-jexcel"))
+ (target "jexcel.min.js"))
+ (format #true "Processing ~a --> ~a~%"
+ source target)
+ (invoke "esbuild" source "--minify"
+ (string-append "--outfile=" target)))))))))
+ (native-inputs
+ `(("esbuild" ,esbuild)
+ ;; There is no tag for this particular commit, but comparison of the
+ ;; contents of the JavaScript files point to this commit as the most
+ ;; likely source.
+ ("js-jexcel"
+ ,(origin
+ (method url-fetch)
+ (uri (string-append
"https://raw.githubusercontent.com/jspreadsheet/ce/"
+
"8af1960f76e6803bebc5750013d2ebe95354e88a/dist/jexcel.js"))
+ (sha256
+ (base32
+ "0y88hsr9d8cpnvdmbm17m328pc4kc5wbcv02kzmhm0bryzhviw7h"))))))
+ (propagated-inputs (list r-htmlwidgets r-jsonlite))
+ (home-page "https://github.com/Swechhya/excelR")
+ (synopsis "Wrapper of the JavaScript library jExcel")
+ (description
+ "This package provides an R interface to the jExcel library to
+create web-based interactive tables and spreadsheets compatible with
+spreadsheet software.")
+ (license license:expat)))
+
(define-public r-extremes
(package
(name "r-extremes")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: Add r-excelr.,
guix-commits <=