Patchwork gnu: Add r-knitrbootstrap.

login
register
mail settings
Submitter Ricardo Wurmus
Date May 24, 2016, 12:53 p.m.
Message ID <1464094411-8277-2-git-send-email-ricardo.wurmus@mdc-berlin.de>
Download mbox | patch
Permalink /patch/12489/
State New
Headers show

Comments

Ricardo Wurmus - May 24, 2016, 12:53 p.m.
* gnu/packages/statistics.scm (r-knitrbootstrap): New variable.
---
 gnu/packages/statistics.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
Leo Famulari - May 27, 2016, 5 p.m.
On Tue, May 24, 2016 at 02:53:31PM +0200, Ricardo Wurmus wrote:
> * gnu/packages/statistics.scm (r-knitrbootstrap): New variable.

It builds for me.

> +    (license license:expat)))

I couldn't find this in the source code. The only thing I found was the
authorship info in 'LICENSE' and this line in 'DESCRIPTION':

License: MIT + file LICENSE

If that's enough, then okay.
Ricardo Wurmus - May 28, 2016, 7:36 a.m.
Leo Famulari <leo@famulari.name> writes:

> On Tue, May 24, 2016 at 02:53:31PM +0200, Ricardo Wurmus wrote:
>> * gnu/packages/statistics.scm (r-knitrbootstrap): New variable.
>
> It builds for me.
>
>> +    (license license:expat)))
>
> I couldn't find this in the source code. The only thing I found was the
> authorship info in 'LICENSE' and this line in 'DESCRIPTION':
>
> License: MIT + file LICENSE
>
> If that's enough, then okay.

Yes, the R project suggests projects to only submit a LICENSE file with
the two attribution lines for year and copyright holder, and set the
“License” field in the DESCRIPTION file as “MIT + file LICENSE”.

Here are the instructions including the remainder of the license for
reference:

    https://www.r-project.org/Licenses/MIT

~~ Ricardo


PS: I still need to update the importer to select the Expat license by
default when it encounters “MIT + file LICENSE” in the DESCRIPTION file.
Leo Famulari - May 28, 2016, 3:56 p.m.
On Sat, May 28, 2016 at 09:36:40AM +0200, Ricardo Wurmus wrote:
> 
> Leo Famulari <leo@famulari.name> writes:
> 
> > On Tue, May 24, 2016 at 02:53:31PM +0200, Ricardo Wurmus wrote:
> >> * gnu/packages/statistics.scm (r-knitrbootstrap): New variable.
> >
> > It builds for me.
> >
> >> +    (license license:expat)))
> >
> > I couldn't find this in the source code. The only thing I found was the
> > authorship info in 'LICENSE' and this line in 'DESCRIPTION':
> >
> > License: MIT + file LICENSE
> >
> > If that's enough, then okay.
> 
> Yes, the R project suggests projects to only submit a LICENSE file with
> the two attribution lines for year and copyright holder, and set the
> “License” field in the DESCRIPTION file as “MIT + file LICENSE”.

Okay, thanks for the clarification!

> 
> Here are the instructions including the remainder of the license for
> reference:
> 
>     https://www.r-project.org/Licenses/MIT
> 
> ~~ Ricardo
> 
> 
> PS: I still need to update the importer to select the Expat license by
> default when it encounters “MIT + file LICENSE” in the DESCRIPTION file.

Patch

diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 76fd3b8..1288d9d 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -792,6 +792,29 @@  generation in R using Literate Programming techniques.")
     ;; here.
     (license license:gpl2+)))
 
+(define-public r-knitrbootstrap
+  (package
+    (name "r-knitrbootstrap")
+    (version "1.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "knitrBootstrap" version))
+       (sha256
+        (base32
+         "0pshn2slzqwpryklslsxwh1dmqcnwv6bwi7yfm6m342wjybpk0wl"))))
+    (properties `((upstream-name . "knitrBootstrap")))
+    (build-system r-build-system)
+    (propagated-inputs
+     `(("r-knitr" ,r-knitr)
+       ("r-rmarkdown" ,r-rmarkdown)))
+    (home-page "https://github.com/jimhester/knitrBootstrap")
+    (synopsis "Knitr bootstrap framework")
+    (description
+     "This package provides a framework to create Bootstrap 3 HTML reports
+from knitr Rmarkdown.")
+    (license license:expat)))
+
 (define-public r-microbenchmark
   (package
     (name "r-microbenchmark")