yihui/knitr — Issue #151: old Sweave syntax?
Author: dmenne
Created: 2012-02-25 11:28:40+00:00
State: open

In today's developer version, it get the messages below in a file that worked yesterday, probably in the following line:

\SweaveOpts{engine=R,dev=pdf, echo=FALSE, include=TRUE, results=hide, fig.path=graphics/df-, fig.keep=high, message=FALSE, progress=FALSE, cache=FALSE,fig.width=8, fig.height=5,out.width=1.02\linewidth)}

What's wrong? I could not see on the mentioned page what the "old" syntax is. I assume it means SweaveOpts is deprectated. But how should I set globals like those above?

Dieter

processing file: DF2.Rnw
Error in parse(text = str_c("alist(", params, ")")) :
1:94: unexpected ','
1: alist(engine=R,dev=pdf, echo=FALSE, include=TRUE, results=hide, fig.path=graphics/DanoneFlow-,
^
Warning in parse_params(opts, label = FALSE) :
are you using old Sweave syntax? go http://yihui.name/knitr/options
|>>>>>>>>>>>>> | 20%
ordinary text without R code

|>>>>>>>>>>>>>>>>>>>>>>>>>> | 40%
knitopts: echo=FALSE, include=FALSE

processing file: .//DF2Header.rnw
Warning in parse_params(params) :
are you using old Sweave syntax? go http://yihui.name/knitr/options
output file: C:\Users\Dieter\Documents\Danone\presentation2\DF2Header.tex
processing file: .//DF2Linexp.rnw