From 4fb35ebd8d1845dbabbbbb04b4ae332513e6e6c5 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 30 Oct 2018 22:47:00 +0100 Subject: [PATCH] gnu: Add r-rcppgsl. * gnu/packages/cran.scm (r-rcppgsl): New variable. --- gnu/packages/cran.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index f5ce5bc10f..552df6dd3f 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -7083,3 +7083,33 @@ series expansion (Dunn and Smyth, 2005; ) and the Fourier inversion (Dunn and Smyth, 2008; ), and related methods.") (license license:gpl2+))) + +(define-public r-rcppgsl + (package + (name "r-rcppgsl") + (version "0.3.6") + (source + (origin + (method url-fetch) + (uri (cran-uri "RcppGSL" version)) + (sha256 + (base32 + "16pdapq31729db53agnb48jkvdm97167n3bigy5zazc3q3isis1m")))) + (properties `((upstream-name . "RcppGSL"))) + (build-system r-build-system) + (propagated-inputs + `(("r-rcpp" ,r-rcpp) + ("gsl" ,gsl))) + (native-inputs + `(("r-knitr" ,r-knitr))) ; for vignettes + (home-page "https://cran.r-project.org/web/packages/RcppGSL/") + (synopsis "Rcpp integration for GSL vectors and matrices") + (description + "The GNU Scientific Library (or GSL) is a collection of numerical +routines for scientific computing. It is particularly useful for C and C++ +programs as it provides a standard C interface to a wide range of mathematical +routines. There are over 1000 functions in total with an extensive test +suite. The RcppGSL package provides an easy-to-use interface between GSL data +structures and R using concepts from Rcpp which is itself a package that eases +the interfaces between R and C++.") + (license license:gpl2+)))