summary refs log tree commit diff
path: root/gnu/packages/cran.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2021-07-10 13:35:29 +0200
committerRicardo Wurmus <rekado@elephly.net>2021-07-10 21:35:28 +0200
commit48abef355de31de07d891492efee1411213a63ad (patch)
tree2a48518b1da09e739a3bfe2054758c7e921ad0f3 /gnu/packages/cran.scm
parent9a3f66ee7b573e44111d7b8052d74b31d323c0e6 (diff)
downloadguix-48abef355de31de07d891492efee1411213a63ad.tar.gz
gnu: Add r-s2.
* gnu/packages/cran.scm (r-s2): New variable.
Diffstat (limited to 'gnu/packages/cran.scm')
-rw-r--r--gnu/packages/cran.scm31
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 8933213e13..818aa9fdff 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -15893,6 +15893,37 @@ in R if the information they contain can be accessed in R, for which
 high-performance functions are provided here.")
     (license license:expat)))
 
+(define-public r-s2
+  (package
+    (name "r-s2")
+    (version "1.0.6")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "s2" version))
+       (sha256
+        (base32
+         "1xd42bpbm090dqlldavbn6c1h1mfwhlws9536avan00w3szlxk56"))))
+    (properties `((upstream-name . "s2")))
+    (build-system r-build-system)
+    (propagated-inputs
+     `(("r-rcpp" ,r-rcpp)
+       ("r-wk" ,r-wk)))
+    (inputs
+     `(("openssl" ,openssl)))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (home-page "https://r-spatial.github.io/s2/")
+    (synopsis "Spherical geometry operators using the S2 geometry library")
+    (description
+     "This package provides R bindings for Google's s2 library for geometric
+calculations on the sphere.  High-performance constructors and exporters
+provide high compatibility with existing spatial packages, transformers
+construct new geometries from existing geometries, predicates provide a means
+to select geometries based on spatial relationships, and accessors extract
+information about geometries.")
+    (license license:asl2.0)))
+
 (define-public r-sf
   (package
     (name "r-sf")