Skip to content

CHANGES IN knitr VERSION 1.14

Compare
Choose a tag to compare
@yihui yihui released this 07 Oct 05:57
· 1914 commits to master since this release

NEW FEATURES

  • improved caching for Rcpp code chunks: the shared library built from the C++ code will be preserved on disk and reloaded the next time if caching is enabled (chunk option cache = TRUE), so that the exported R functions are still usable in later R code chunks; note this feature requires Rcpp >= 0.12.5.6 (thanks, @jjallaire, #1239)
  • added a helper function all_rcpp_labels(), which is simply all_labels(engine == 'Rcpp') and can be used to extract all chunk lables of Rcpp chunks
  • added a new engine named sql that uses the DBI package to execute SQL queries, and optionally assign the result to a variable in the knitr session; see http://rmarkdown.rstudio.com/authoring_knitr_engines.html for details (#1241)
  • fig.keep now accepts numeric values to index low-level plots to keep (#1265)

BUG FIXES

  • fixed #1211: pandoc('foo.md') generates foo_utf8.html instead of foo.html by default
  • fixed #1236: include = FALSE for code chunks inside blockquotes did not work (should return > instead of a blank line) (thanks, @fmichonneau)
  • fixed #1217: define the command \hlipl for syntax highlighting for Rnw documents (thanks, @conjugateprior)
  • fixed #1215: restoring par() settings might fail when the plot window is partitioned, e.g. par(mfrow = c(1, 2)) (thanks, @jrwishart @jmichaelgilbert)
  • fixed #1250: in the quiet mode, knit() should not emit the message "processing file ..." when processing child documents (thanks, @KZARCA)

MAJOR CHANGES

  • knitr will no longer generate screenshots automatically for HTML widgets if the webshot package or PhantomJS is not installed

MINOR CHANGES

  • if dev = 'cairo_pdf', the cairo_pdf device will be used to record plots (previously the pdf device was used) (#1235)
  • LaTeX short captions now go up to the first ., : or ; character followed by a space or newline (thanks, @knokknok, #1249)