lyx_mirror/lib/scripts/lyxstangle.R
Jean-Marc Lasgouttes 7fc83acb5e Add possibility to export the R code from a sweave-enabled document
(patch from yihui, part of #7555)
http://www.lyx.org/trac/ticket/7555#comment:18

This adds the new format "R/S code" with extension .R and a converter from .Rnw.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39509 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-23 10:33:42 +00:00

17 lines
377 B
R

## file lyxstangle.R
## This file is part of LyX, the document processor.
## Licence details can be found in the file COPYING.
## author Yihui Xie
## Full author contact details are available in file CREDITS
## Rscript $$s/scripts/lyxstangle.R $$i $$e $$r
.cmdargs = commandArgs(TRUE)
options(encoding = .cmdargs[2])
## run Stangle to extract R code
Stangle(.cmdargs[1])