Patchwork [2/3] gnu: Add r-svglite.

login
register
mail settings
Submitter Ben Woodcroft
Date July 5, 2016, 1:06 p.m.
Message ID <20160705130635.668-3-donttrustben@gmail.com>
Download mbox | patch
Permalink /patch/13637/
State New
Headers show

Comments

Ben Woodcroft - July 5, 2016, 1:06 p.m.
* gnu/packages/statistics.scm (r-svglite): New variable.
---
 gnu/packages/statistics.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
Ricardo Wurmus - July 6, 2016, 5:30 a.m.
Ben Woodcroft <donttrustben@gmail.com> writes:

> * gnu/packages/statistics.scm (r-svglite): New variable.
> ---
>  gnu/packages/statistics.scm | 25 +++++++++++++++++++++++++
>  1 file changed, 25 insertions(+)
>
> diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
> index 24fbabe..6f27aa6 100644
> --- a/gnu/packages/statistics.scm
> +++ b/gnu/packages/statistics.scm
> @@ -634,6 +634,31 @@ aesthetic attributes.")
>  and to generate base64 encoded string from raster matrix.")
>      (license license:gpl3)))
>  
> +(define-public r-svglite
> +  (package
> +    (name "r-svglite")
> +    (version "1.1.0")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (cran-uri "svglite" version))
> +       (sha256
> +        (base32
> +         "11ryicjglfi6jvkk4jgg5kra42qbs5z2zid7jjhlslpjcljfwc70"))))
> +    (build-system r-build-system)
> +    (native-inputs  `(("r-rcpp" ,r-rcpp)))
> +    (propagated-inputs
> +     `(("r-bh" ,r-bh)
> +       ("r-gdtools" ,r-gdtools)))
> +    (home-page "https://github.com/hadley/svglite")
> +    (synopsis "An 'SVG' Graphics Device")

How about just “SVG graphics device”?

> +    (description
> +     "@code{svglite} is a graphics device that produces clean SVG (Scalable
> +Vector Graphics) output, suitable for use on the web, or hand
> editing.

How about

    @dfn{SVG} (Scalable Vector Graphics)

?

> +Compared to the built-in @code{svg()}, @code{svglite} is considerably faster,
> +produces smaller files, and leaves text as is.")
> +    (license license:gpl2+)))
> +

The rest looks fine.

~~ Ricardo
Ben Woodcroft - July 7, 2016, 10:16 a.m.
On 06/07/16 13:30, Ricardo Wurmus wrote:
> Ben Woodcroft <donttrustben@gmail.com> writes:
>
[..]
>> ---
>> +    (synopsis "An 'SVG' Graphics Device")
> How about just “SVG graphics device”?
>
>> +    (description
>> +     "@code{svglite} is a graphics device that produces clean SVG (Scalable
>> +Vector Graphics) output, suitable for use on the web, or hand
>> editing.
> How about
>
>      @dfn{SVG} (Scalable Vector Graphics)
>
> ?

Thanks for the review. I pushed this set with both these changes.

ben

Patch

diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 24fbabe..6f27aa6 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -634,6 +634,31 @@  aesthetic attributes.")
 and to generate base64 encoded string from raster matrix.")
     (license license:gpl3)))
 
+(define-public r-svglite
+  (package
+    (name "r-svglite")
+    (version "1.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "svglite" version))
+       (sha256
+        (base32
+         "11ryicjglfi6jvkk4jgg5kra42qbs5z2zid7jjhlslpjcljfwc70"))))
+    (build-system r-build-system)
+    (native-inputs  `(("r-rcpp" ,r-rcpp)))
+    (propagated-inputs
+     `(("r-bh" ,r-bh)
+       ("r-gdtools" ,r-gdtools)))
+    (home-page "https://github.com/hadley/svglite")
+    (synopsis "An 'SVG' Graphics Device")
+    (description
+     "@code{svglite} is a graphics device that produces clean SVG (Scalable
+Vector Graphics) output, suitable for use on the web, or hand editing.
+Compared to the built-in @code{svg()}, @code{svglite} is considerably faster,
+produces smaller files, and leaves text as is.")
+    (license license:gpl2+)))
+
 (define-public r-assertthat
   (package
     (name "r-assertthat")