From 979ef5f4015770750df8642df80b0ef9fd652ae2 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 23 Jan 2025 15:38:29 +0100 Subject: [PATCH] gnu: Add r-rcppint64. * gnu/packages/cran.scm (r-rcppint64): New variable. Change-Id: Ib6927919d76a0ef216521430f1868ab671a35296 --- gnu/packages/cran.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 3983948b173e8734bb2c0e41f6d507e858b68ef2..2c6082eacc5367eb2a1dec283e559ae44e6eb5b0 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -8874,6 +8874,33 @@ code using Rcpp or RcppArmadillo. Functions are available that return a distributions, Armadillo vectors and matrices.") (license license:gpl2+))) +(define-public r-rcppint64 + (package + (name "r-rcppint64") + (version "0.0.5") + (source + (origin + (method url-fetch) + (uri (cran-uri "RcppInt64" version)) + (sha256 + (base32 "1h4lshkn3p3c7swygbpmkg0pa80xcp3f9alck5q4bmml61hicwjk")))) + (properties `((upstream-name . "RcppInt64"))) + (build-system r-build-system) + (propagated-inputs (list r-rcpp)) + (native-inputs (list r-tinytest)) + (home-page "https://github.com/eddelbuettel/rcppint64") + (synopsis + "Rcpp-based helper functions to pass Int64 values between R and C++") + (description + "@code{int64} values can be created and accessed via the @code{bit64} +package and its @code{integer64} class which package the @code{int64} +representation cleverly into a @code{double}. The @code{nanotime} package +builds on this to support nanosecond-resolution timestamps. This package +helps conversions between R and C++ via several helper functions provided via +a single header file. A complete example client package is included as an +illustration.") + (license license:gpl2+))) + (define-public r-rcppml (package (name "r-rcppml")