gnu: Add r-magick.

* gnu/packages/cran.scm (r-magick): New variable.
This commit is contained in:
Ricardo Wurmus 2019-03-07 22:09:04 +01:00
parent 3f22a115bd
commit dab3e92c94
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -51,6 +51,7 @@ (define-module (gnu packages cran)
#:use-module (gnu packages gtk)
#:use-module (gnu packages haskell)
#:use-module (gnu packages image)
#:use-module (gnu packages imagemagick)
#:use-module (gnu packages javascript)
#:use-module (gnu packages lisp)
#:use-module (gnu packages machine-learning)
@ -7132,6 +7133,39 @@ (define-public r-rbenchmark
conveniently wrapped into a data frame.")
(license license:gpl2+)))
(define-public r-magick
(package
(name "r-magick")
(version "2.0")
(source
(origin
(method url-fetch)
(uri (cran-uri "magick" version))
(sha256
(base32
"18y465325mhf48x2jn3jz9khwq1z2aj13wfbdkv8k3hln1sd572m"))))
(build-system r-build-system)
(inputs
`(("imagemagick" ,imagemagick)
("zlib" ,zlib)))
(propagated-inputs
`(("r-curl" ,r-curl)
("r-magrittr" ,r-magrittr)
("r-rcpp" ,r-rcpp)))
(native-inputs
`(("pkg-config" ,pkg-config)))
(home-page "https://github.com/ropensci/magick")
(synopsis "Advanced graphics and image-processing in R")
(description
"This package provides bindings to ImageMagick, a comprehensive image
processing library. It supports many common formats (PNG, JPEG, TIFF, PDF,
etc.) and manipulations (rotate, scale, crop, trim, flip, blur, etc). All
operations are vectorized via the Magick++ STL meaning they operate either on
a single frame or a series of frames for working with layers, collages, or
animation. In RStudio, images are automatically previewed when printed to the
console, resulting in an interactive editing environment.")
(license license:expat)))
(define-public r-dvmisc
(package
(name "r-dvmisc")