diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2018-03-08 23:16:19 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2018-03-08 23:31:56 +0100 |
commit | 3dab50d92aedeb276d7997ccf9b37535ada58454 (patch) | |
tree | 115ddb82e862546803b668a63fb3facf1ed8bf70 /gnu | |
parent | db80dd4a1d7e2371bc3c300f48b84a817adb3550 (diff) | |
download | guix-3dab50d92aedeb276d7997ccf9b37535ada58454.tar.gz guix-3dab50d92aedeb276d7997ccf9b37535ada58454.zip |
gnu: Add r-gsubfn.
* gnu/packages/cran.scm (r-gsubfn): New variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/cran.scm | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 84b7b244d9..ae7b442f64 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+))) |