unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#62733] [PATCH] gnu: Add r-littler
@ 2023-04-09  3:13 kyle
  0 siblings, 0 replies; 3+ messages in thread
From: kyle @ 2023-04-09  3:13 UTC (permalink / raw)
  To: 62733; +Cc: rekado, Kyle Andrews

From: Kyle Andrews <kyle@posteo.net>

---
 gnu/packages/statistics.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 628057a189..e61d06721e 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -1010,6 +1010,42 @@ (define-public r-labeling
 algorithms.")
     (license license:expat)))
 
+(define-public r-littler
+  (package
+    (name "r-littler")
+    (version "0.3.18")
+    (source (origin
+              (method url-fetch)
+              (uri (cran-uri "littler" version))
+              (sha256
+               (base32
+                "1lp6a62g3yhzr4pv9kynibv7k9pd546w6hifs1aficyxbyg4dgqq"))))
+    (properties `((upstream-name . "littler")))
+    (build-system r-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+	  (add-after 'install 'add-to-path
+	    (lambda _
+              (mkdir (string-append #$output "/bin"))
+              (copy-file "inst/bin/r"
+                         (string-append #$output "/bin/r")))))))
+    (inputs (list icu4c))
+    (native-inputs
+     (list r-simplermarkdown automake autoconf zlib))
+    (home-page "https://github.com/eddelbuettel/littler")
+    (synopsis "R at the Command-Line via 'r'")
+    (description
+     "This package provides a scripting and command-line front-end is provided by r
+(aka littler') as a lightweight binary wrapper around the GNU R language and
+environment for statistical computing and graphics.  While R can be used in
+batch mode, the r binary adds full support for both shebang'-style scripting
+(i.e.  using a hash-mark-exclamation-path expression as the first line in
+scripts) as well as command-line use in standard Unix pipelines.  In other
+words, r provides the R language without the environment.")
+    (license license:gpl2+)))
+
 (define-public r-magrittr
   (package
     (name "r-magrittr")
-- 
2.39.2





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#62733] [PATCH] gnu: Add r-littler
@ 2023-04-09 13:36 kyle
  2023-04-09 13:51 ` ( via Guix-patches via
  0 siblings, 1 reply; 3+ messages in thread
From: kyle @ 2023-04-09 13:36 UTC (permalink / raw)
  To: 62733; +Cc: rekado, Kyle Andrews

From: Kyle Andrews <kyle@posteo.net>

---
 gnu/packages/statistics.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 628057a189..d057f52f08 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -1010,6 +1010,42 @@ (define-public r-labeling
 algorithms.")
     (license license:expat)))
 
+(define-public r-littler
+  (package
+    (name "r-littler")
+    (version "0.3.18")
+    (source (origin
+              (method url-fetch)
+              (uri (cran-uri "littler" version))
+              (sha256
+               (base32
+                "1lp6a62g3yhzr4pv9kynibv7k9pd546w6hifs1aficyxbyg4dgqq"))))
+    (properties `((upstream-name . "littler")))
+    (build-system r-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+	  (add-after 'install 'add-to-path
+	    (lambda _
+              (install-file
+	       "inst/bin/r"
+	       (string-append #$output "/bin")))))))
+    (inputs (list icu4c))
+    (native-inputs
+     (list r-simplermarkdown automake autoconf zlib pkg-config))
+    (home-page "https://github.com/eddelbuettel/littler")
+    (synopsis "R at the Command-Line via 'r'")
+    (description
+     "This package provides a scripting and command-line front-end is provided by r
+(aka littler') as a lightweight binary wrapper around the GNU R language and
+environment for statistical computing and graphics.  While R can be used in
+batch mode, the r binary adds full support for both shebang'-style scripting
+(i.e.  using a hash-mark-exclamation-path expression as the first line in
+scripts) as well as command-line use in standard Unix pipelines.  In other
+words, r provides the R language without the environment.")
+    (license license:gpl2+)))
+
 (define-public r-magrittr
   (package
     (name "r-magrittr")
-- 
2.39.2





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#62733] [PATCH] gnu: Add r-littler
  2023-04-09 13:36 [bug#62733] [PATCH] gnu: Add r-littler kyle
@ 2023-04-09 13:51 ` ( via Guix-patches via
  0 siblings, 0 replies; 3+ messages in thread
From: ( via Guix-patches via @ 2023-04-09 13:51 UTC (permalink / raw)
  To: kyle, 62733; +Cc: rekado

[-- Attachment #1: Type: text/plain, Size: 186 bytes --]

On Sun Apr 9, 2023 at 2:36 PM BST, kyle wrote:
> +    (native-inputs
> +     (list r-simplermarkdown automake autoconf zlib pkg-config))

zlib should be a regular input

    -- (

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-04-09 13:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-09 13:36 [bug#62733] [PATCH] gnu: Add r-littler kyle
2023-04-09 13:51 ` ( via Guix-patches via
  -- strict thread matches above, loose matches on Subject: below --
2023-04-09  3:13 kyle

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).