Skip to content
support for R in LyX (Sweave and knitr, ...)
Branch: master
Clone or download
yihui create .cmdargs in a local environment instead of polluting the globa…
…l environment, and knit(envir = globalenvir())

I don't think we still need the trick is.null(formals(knit)$encoding); it was there because the very early versions of knit() did not have the encoding argument, and I don't think any people are still using knitr from three years ago

http://www.lyx.org/trac/ticket/7802
Latest commit 4247de0 Feb 4, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bind
examples see the beamer example at https://github.com/yihui/knitr/tree/master/… Jan 18, 2015
layouts Update RJournal.layout to v0.12 of RJournal.sty Aug 22, 2013
paper remove the flex insets and use layout instead May 10, 2013
scripts create .cmdargs in a local environment instead of polluting the globa… Feb 4, 2016
templates there is no eps device in knitr; there is only postscript Aug 22, 2013
.gitignore ignore pdf and latex auxiliary files Jan 4, 2013
README.md update readme: the pdf files have been moved to bitbucket Jan 9, 2013
add-R-path-win.R an R script to add R's bin directory to the PATH variable under Windows Nov 9, 2011

README.md

Support Files for Using R in LyX

This repository provides some (unofficial) support files for using R with LyX.

The scripts directory

  • lyxknitr.R is for the knitr package (it has already been included in official LyX, so you do not actually need it)

The examples directory

Aside from the official manual of Sweave in LyX, which is an example file itself, I have a few other examples demonstrating how to use Sweave with beamer in LyX, and how to use knitr.

Other files

  • add-R-path-win.R is a dirty R script to help Windows users who are reluctant to learn what is the PATH variable add the bin path of R to the PATH variable of the system (use with care; I have no guarantee).

Downloads

Usually I do not put binary files under version control (in GIT), so I upload them separately at https://bitbucket.org/stat/lyx/downloads

Contributions? Comments?

I'd love to include more contributions from LyX/Sweave users; please feel free to email me or open an issue here if you have any requests, comments or questions.

You can’t perform that action at this time.