mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 13:20:58 +00:00
7fc83acb5e
(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
17 lines
377 B
R
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])
|