aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorCharlie Ritter <chewzerita@posteo.net>2018-03-12 10:59:56 -0400
committerMarius Bakke <mbakke@fastmail.com>2018-03-26 21:43:58 +0200
commit81a9d4a4221299d00dd6b974efeeca1e79e5d2a1 (patch)
treed6307da1bf0bb7164fc681798dac01560509b929 /gnu
parent948740b08a66a544754de31cc5746c89e9c2ff1d (diff)
downloadpatches-81a9d4a4221299d00dd6b974efeeca1e79e5d2a1.tar
patches-81a9d4a4221299d00dd6b974efeeca1e79e5d2a1.tar.gz
gnu: Add r-selectr.
* gnu/packages/cran.scm (r-selectr): New variable. Signed-off-by: Marius Bakke <mbakke@fastmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/cran.scm23
1 files changed, 23 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index e3bcaf3fc9..0fedb70850 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -37,6 +37,29 @@
#:use-module (gnu packages statistics)
#:use-module (gnu packages web))
+(define-public r-selectr
+ (package
+ (name "r-selectr")
+ (version "0.3-2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (cran-uri "selectr" version))
+ (sha256
+ (base32
+ "0kdrj64rqg4z6hg92y9r2h602a2i73r5rnlpg23ys33d5d32n8jy"))))
+ (build-system r-build-system)
+ (propagated-inputs `(("r-stringr" ,r-stringr)))
+ (home-page "https://sjp.co.nz/projects/selectr/")
+ (synopsis "Translate CSS selectors to XPath expressions")
+ (description
+ "@code{r-selectr} translates a CSS3 selector into an equivalent XPath
+expression. This allows you to use CSS selectors when working with the XML
+package as it can only evaluate XPath expressions. Also provided are
+convenience functions useful for using CSS selectors on XML nodes. This
+package is a port of the Python package @code{cssselect}.")
+ (license license:bsd-3)))
+
(define-public r-reprex
(package
(name "r-reprex")