guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

07/14: gnu: Add r-gsubfn.


From: Ricardo Wurmus
Subject: 07/14: gnu: Add r-gsubfn.
Date: Thu, 8 Mar 2018 17:32:39 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit 3dab50d92aedeb276d7997ccf9b37535ada58454
Author: Ricardo Wurmus <address@hidden>
Date:   Thu Mar 8 23:16:19 2018 +0100

    gnu: Add r-gsubfn.
    
    * gnu/packages/cran.scm (r-gsubfn): New variable.
---
 gnu/packages/cran.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 84b7b24..ae7b442 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -3005,3 +3005,29 @@ including correlations and factor analysis; functions 
for simulating and
 testing particular item and test structures are included.  Several functions
 serve as a useful front end for structural equation modeling.")
     (license license:gpl2+)))
+
+(define-public r-gsubfn
+  (package
+    (name "r-gsubfn")
+    (version "0.6-6")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "gsubfn" version))
+       (sha256
+        (base32
+         "196x4c3ihf4q3i0v7b1xa6jm8jjld2rsx00qz03n90wfnjdx5idv"))))
+    (build-system r-build-system)
+    (propagated-inputs `(("r-proto" ,r-proto)))
+    (home-page "http://gsubfn.googlecode.com";)
+    (synopsis "Utilities for strings and function arguments.")
+    (description
+     "This package provides @code{gsubfn} which is like @code{gsub} but can
+take a replacement function or certain other objects instead of the
+replacement string.  Matches and back references are input to the replacement
+function and replaced by the function output.  @code{gsubfn} can be used to
+split strings based on content rather than delimiters and for quasi-perl-style
+string interpolation.  The package also has facilities for translating
+formulas to functions and allowing such formulas in function calls instead of
+functions.")
+    (license license:gpl2+)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]