From 1c59ec707e3a6f4496af411d4e2f46fbd4628ce4 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 27 Mar 2019 15:44:00 +0100 Subject: [PATCH] gnu: Add r-farver. * gnu/packages/cran.scm (r-farver): New variable. --- gnu/packages/cran.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 5f1dd03983..c943efe507 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -13120,3 +13120,28 @@ package. The result looks like the original @code{graphics}-based plot, but consists of @code{grid} grobs and viewports that can then be manipulated with @code{grid} functions (e.g., edit grobs and revisit viewports).") (license license:gpl2+))) + +(define-public r-farver + (package + (name "r-farver") + (version "1.1.0") + (source + (origin + (method url-fetch) + (uri (cran-uri "farver" version)) + (sha256 + (base32 + "1dllgx121al374gyp9pjv1m8ip4imm8zhbgyh1970dsz2c4z71i0")))) + (build-system r-build-system) + (propagated-inputs `(("r-rcpp" ,r-rcpp))) + (home-page "https://github.com/thomasp85/farver") + (synopsis "Vectorized color conversion and comparison") + (description + "The encoding of color can be handled in many different ways, using +different color spaces. As different color spaces have different uses, +efficient conversion between these representations are important. This +package provides a set of functions that gives access to very fast color space +conversion and comparisons implemented in C++, and offers 100-fold speed +improvements over the @code{convertColor} function in the @code{grDevices} +package.") + (license license:expat)))