From 61eea88ddea52b5f6959af5be3b28926a5e0200e Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 26 Aug 2024 20:23:00 +0200 Subject: [PATCH] gnu: Add r-geometries. * gnu/packages/cran.scm (r-geometries): New variable. Change-Id: I290a5cc2bda00859d27c7a91341acb20708c9abc --- gnu/packages/cran.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index b7c71706d1aa2a1b2987899d1f884fbf5e799a15..ea918d2367ea7043d168737cb741f0d7a0b66b51 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -9564,6 +9564,29 @@ interface to @code{PostgreSQL}, a relational database.") Optimization problems by using the simplex algorithm.") (license license:gpl2+))) +(define-public r-geometries + (package + (name "r-geometries") + (version "0.2.4") + (source + (origin + (method url-fetch) + (uri (cran-uri "geometries" version)) + (sha256 + (base32 "040ljxmzbjdr76p81ygnn5y0gzckz5k2arxkih5m5f3b6g62laf6")))) + (properties `((upstream-name . "geometries"))) + (build-system r-build-system) + (propagated-inputs (list r-rcpp)) + (native-inputs (list r-knitr)) + (home-page "https://dcooley.github.io/geometries/") + (synopsis "Convert between R objects and geometric structures") + (description + "Geometry shapes in R are typically represented by matrices (points, +lines), with more complex shapes being lists of matrices (polygons). +Geometries will convert various R objects into these shapes. Conversion +functions are available at both the R level, and through Rcpp.") + (license license:expat))) + (define-public r-geometry (package (name "r-geometry")