diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2018-05-31 12:26:09 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2018-05-31 13:21:31 +0200 |
commit | 9f56ceecf35fc13baa08b5f95fc2a6ad9e0d3313 (patch) | |
tree | 1e0877909bede813dd70ede1f52de30202be75e7 | |
parent | d182828f53f15bfd13d38aaa5dc04486df8ad431 (diff) | |
download | guix-9f56ceecf35fc13baa08b5f95fc2a6ad9e0d3313.tar guix-9f56ceecf35fc13baa08b5f95fc2a6ad9e0d3313.tar.gz |
gnu: Add r-reticulate.
* gnu/packages/cran.scm (r-reticulate): New variable.
-rw-r--r-- | gnu/packages/cran.scm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 5263e89888..39b9a64660 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -36,6 +36,7 @@ #:use-module (gnu packages mpi) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python) #:use-module (gnu packages statistics) #:use-module (gnu packages web)) @@ -4151,3 +4152,29 @@ bootstrap using a truncated geometric distribution, a comprehensive test for weak stationarity, column means by group, weighted biplots, and a heuristic to obtain a better initial configuration in non-metric MDS.") (license license:gpl2))) + +(define-public r-reticulate + (package + (name "r-reticulate") + (version "1.7") + (source + (origin + (method url-fetch) + (uri (cran-uri "reticulate" version)) + (sha256 + (base32 + "1ghhc4hbmwpp79ilbdbshynhs61i8sv8z6p1al04jy7ij0lcglxy")))) + (build-system r-build-system) + (inputs `(("python" ,python))) + (propagated-inputs + `(("r-jsonlite" ,r-jsonlite) + ("r-matrix" ,r-matrix) + ("r-rcpp" ,r-rcpp))) + (home-page "https://github.com/rstudio/reticulate") + (synopsis "R interface to Python") + (description + "This package provides an interface from R to Python modules, classes, +and functions. When calling into Python, R data types are automatically +converted to their equivalent Python types. When values are returned from +Python to R they are converted back to R types.") + (license license:asl2.0))) |