From d2bf70d4effba6d1cd580704396522a385061d65 Mon Sep 17 00:00:00 2001 From: Vicente Vera Parra Date: Sun, 13 Sep 2015 13:26:29 -0300 Subject: [PATCH 16/19] gnu: Add r-crayon. * gnu/packages/statistics.scm (r-crayon): New variable. --- gnu/packages/statistics.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index cb9a793..a231cb8 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -810,3 +810,26 @@ language at a deeper level.") "Cache the results of a function so that when you call it again with the same arguments it returns the pre-computed value.") (license license:expat))) + +(define-public r-crayon + (package + (name "r-crayon") + (version "1.3.1") + (source (origin + (method url-fetch) + (uri (string-append "mirror://cran/src/contrib/crayon_" + version ".tar.gz")) + (sha256 + (base32 "0d38fm06h272a8iqlc0d45m2rh36giwqw7mwq4z8hkp4vs975fmm")))) + (build-system r-build-system) + (propagated-inputs + `(("r-memoise" ,r-memoise))) + (home-page "https://github.com/gaborcsardi/crayon") + (synopsis "Colored Terminal Output") + (description + "Colored terminal output on terminals that support 'ANSI' color +and highlight codes. It also works in 'Emacs' 'ESS'. 'ANSI' color +support is automatically detected. Colors and highlighting can be +combined and nested. New styles can also be created easily. This +package was inspired by the 'chalk' 'JavaScript' project.") + (license license:expat))) -- 2.5.1