pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/print/R-knitr Initial import of knitr v1.6 as print/R-...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a9b14d4f2c00
branches: trunk
changeset: 639641:a9b14d4f2c00
user: brook <brook%pkgsrc.org@localhost>
date: Sat Sep 20 04:03:40 2014 +0000
description:
Initial import of knitr v1.6 as print/R-knitr.
This package provides a general-purpose tool for dynamic report
generation in R, which can be used to deal with any type of (plain
text) files, including Sweave, HTML, Markdown, reStructuredText,
AsciiDoc, and Textile. R code is evaluated as if it were copied and
pasted in an R terminal thanks to the evaluate package (e.g., we do
not need to explicitly print() plots from ggplot2 or lattice). R code
can be reformatted by the formatR package so that long lines are
automatically wrapped, with indent and spaces added, and comments
preserved. A simple caching mechanism is provided to cache results
from computations for the first time and the computations will be
skipped the next time. Almost all common graphics devices, including
those in base R and add-on packages like Cairo, cairoDevice and
tikzDevice, are built-in with this package and it is straightforward
to switch between devices without writing any special functions. The
width and height as well as alignment of plots in the output document
can be specified in chunk options (the size of plots for graphics
devices is also supported). Multiple plots can be recorded in a single
code chunk, and it is also allowed to rearrange plots to the end of a
chunk or just keep the last plot. Warnings, messages and errors are
written in the output document by default (can be turned off). The
language in code chunks is not restricted to R (there is simple
support to Python and shell scripts, etc). Many features are borrowed
from or inspired by Sweave, cacheSweave, pgfSweave, brew and decumar.
Note: this commit is part of reorganizing some of the recently
imported R packages, which are being reimported into more appropriate
categories (and removed from math) as a result of a recent discussion
on tech-pkg and privately with wiz@. See the thread starting with:
http://mail-index.netbsd.org/tech-pkg/2014/09/05/msg013558.html
diffstat:
print/R-knitr/DESCR | 23 +++++++++++++++++++++++
print/R-knitr/Makefile | 30 ++++++++++++++++++++++++++++++
print/R-knitr/distinfo | 5 +++++
3 files changed, 58 insertions(+), 0 deletions(-)
diffs (70 lines):
diff -r cd3e15bafcd3 -r a9b14d4f2c00 print/R-knitr/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/print/R-knitr/DESCR Sat Sep 20 04:03:40 2014 +0000
@@ -0,0 +1,23 @@
+This package provides a general-purpose tool for dynamic report
+generation in R, which can be used to deal with any type of (plain
+text) files, including Sweave, HTML, Markdown, reStructuredText,
+AsciiDoc, and Textile. R code is evaluated as if it were copied and
+pasted in an R terminal thanks to the evaluate package (e.g., we do
+not need to explicitly print() plots from ggplot2 or lattice). R code
+can be reformatted by the formatR package so that long lines are
+automatically wrapped, with indent and spaces added, and comments
+preserved. A simple caching mechanism is provided to cache results
+from computations for the first time and the computations will be
+skipped the next time. Almost all common graphics devices, including
+those in base R and add-on packages like Cairo, cairoDevice and
+tikzDevice, are built-in with this package and it is straightforward
+to switch between devices without writing any special functions. The
+width and height as well as alignment of plots in the output document
+can be specified in chunk options (the size of plots for graphics
+devices is also supported). Multiple plots can be recorded in a single
+code chunk, and it is also allowed to rearrange plots to the end of a
+chunk or just keep the last plot. Warnings, messages and errors are
+written in the output document by default (can be turned off). The
+language in code chunks is not restricted to R (there is simple
+support to Python and shell scripts, etc). Many features are borrowed
+from or inspired by Sweave, cacheSweave, pgfSweave, brew and decumar.
diff -r cd3e15bafcd3 -r a9b14d4f2c00 print/R-knitr/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/print/R-knitr/Makefile Sat Sep 20 04:03:40 2014 +0000
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1 2014/09/20 04:03:40 brook Exp $
+
+CATEGORIES= print
+MASTER_SITES= ${MASTER_SITE_R_CRAN:=contrib/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= ${R_HOMEPAGE_BASE}/knitr/
+COMMENT= A general-purpose package for dynamic report generation in R
+# TODO: LICENSE= GPL
+
+R_PKGNAME= knitr
+R_PKGVER= 1.6
+
+DEPENDS+= R-evaluate>=0.5.3:../../devel/R-evaluate
+DEPENDS+= R-digest>=0.6.4:../../security/R-digest
+DEPENDS+= R-formatR>=0.10:../../textproc/R-formatR
+DEPENDS+= R-highr>=0.3:../../textproc/R-highr
+DEPENDS+= R-markdown>=0.6.5:../../textproc/R-markdown
+DEPENDS+= R-stringr>=0.6:../../textproc/R-stringr
+
+REPLACE_RSCRIPT+= inst/bin/knit
+REPLACE_RSCRIPT+= inst/examples/knit-all.R
+
+REPLACE_INTERPRETER+= Rscript
+REPLACE.Rscript.old= .*Rscript
+REPLACE.Rscript.new= ${PREFIX}/bin/Rscript
+REPLACE_FILES.Rscript= ${REPLACE_RSCRIPT}
+
+.include "../../math/R/Makefile.extension"
+.include "../../mk/bsd.pkg.mk"
diff -r cd3e15bafcd3 -r a9b14d4f2c00 print/R-knitr/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/print/R-knitr/distinfo Sat Sep 20 04:03:40 2014 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2014/09/20 04:03:40 brook Exp $
+
+SHA1 (R/knitr_1.6.tar.gz) = 1d8a04a9e0526a31ac59fc81d34ceb9b92f9eee4
+RMD160 (R/knitr_1.6.tar.gz) = 7ca0e2c42776a5472e822bacd2b82fa171ffce87
+Size (R/knitr_1.6.tar.gz) = 990556 bytes
Home |
Main Index |
Thread Index |
Old Index