diff options
author | brook <brook@pkgsrc.org> | 2014-09-20 04:03:40 +0000 |
---|---|---|
committer | brook <brook@pkgsrc.org> | 2014-09-20 04:03:40 +0000 |
commit | 41b70d98d934f45713f578e438d14fd799d707c4 (patch) | |
tree | 78267bc82cbfe9ee0cb744b136fc835ade1a4b03 /print/R-knitr | |
parent | 071bcaf367788b047e283cfe246d51fdcea90824 (diff) | |
download | pkgsrc-41b70d98d934f45713f578e438d14fd799d707c4.tar.gz |
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 (limited to 'print/R-knitr')
-rw-r--r-- | print/R-knitr/DESCR | 23 | ||||
-rw-r--r-- | print/R-knitr/Makefile | 30 | ||||
-rw-r--r-- | print/R-knitr/distinfo | 5 |
3 files changed, 58 insertions, 0 deletions
diff --git a/print/R-knitr/DESCR b/print/R-knitr/DESCR new file mode 100644 index 00000000000..9ceab78ee69 --- /dev/null +++ b/print/R-knitr/DESCR @@ -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 --git a/print/R-knitr/Makefile b/print/R-knitr/Makefile new file mode 100644 index 00000000000..e12fb4f0f98 --- /dev/null +++ b/print/R-knitr/Makefile @@ -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 +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 --git a/print/R-knitr/distinfo b/print/R-knitr/distinfo new file mode 100644 index 00000000000..02af8dd6c60 --- /dev/null +++ b/print/R-knitr/distinfo @@ -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 |