Releases: yihui/knitr
Releases · yihui/knitr
CHANGES IN knitr VERSION 0.2
NEW FEATURES
- added support for including child documents in a main document (like
\SweaveInput{}
but with different implementations); see http://yihui.name/knitr/demo/child/ (#92) - for inline R code, character results are returned as-is now (without
\texttt{}
) - new function
purl()
as a wrapper toknit(..., tangle = TRUE)
which extracts R code from the input document (thanks to Dieter Menne's wife who suggested the function name) - the error hook applies to inline R code when an error occurs in the inline R code, in which case knitr will not stop by default; instead, it writes the error message into the output (#85)
- chunk option
split
also works for HTML output now using<iframe></iframe>
(#82) knit()
gained an argumenttext
as an alternative toinput
(#88)- new chunk option
child
to include child documents into the main document (#92) - chunk option
external
defaults toTRUE
now (wasFALSE
by default in the last version) - added a new demo to show how to build package vignettes with knitr: http://yihui.name/knitr/demo/vignette/
- added support to the
quartz()
device under Mac (#103); now thedev
option has more choices (see http://yihui.name/knitr/options) - chunk option
echo
can take a numeric vector to select which R expressions to echo into the output now (#108); see http://yihui.name/knitr/options - a new function
stitch()
which is a convenience function to insert an R script into a template and compile (to quickly create a report
based on an R script) - for a chunk hook to run, the corresponding chunk option no longer has to be
TRUE
; it can be any non-null values; this enables us to make use of the option value directly instead of only knowing it isTRUE
(see http://yihui.name/knitr/demo/cache/ for an example) knit()
will no longer writes figure or cache files in the same directory as the input document; instead, these files are written in the current working directory (see ?knit)- a new function
knit_env()
that makes the environment of the current chunk accessible to the user
BUG FIXES
- the code used to merge global chunk options and local options was buggy for cache; it has been fixed now, so cache is more stable (#105), but users may see previously cached chunks being re-evaluated with this version, which should be regarded as a normal phenomenon, and on the second run, the cached chunks will not be evaluated again
- fixed a buglet when using both options
out.width
andout.height
in Rnw (#113)
CHANGES IN knitr VERSION 0.1
NEW FEATURES
- first version of knitr: it covers most features in Sweave, cacheSweave and pgfSweave; see package homepage for documentation and examples: http://yihui.name/knitr/
MISC
- knitr won an Honorable Mention prize (before it was formally released to CRAN) in the Applications of R in Business Contest hosted by Revolution Analytics: http://bit.ly/wP1Dii http://bit.ly/wDRCPV
- in this NEWS file, #n means the issue number on GitHub, e.g. #142 is #142