在R studio中包含Swave文档?
我创建了两个文件Master.Rnw和Child.Rnw,如中所示。也就是说: Master.rnw:在R studio中包含Swave文档?,r,sweave,rstudio,R,Sweave,Rstudio,我创建了两个文件Master.Rnw和Child.Rnw,如中所示。也就是说: Master.rnw: \documentclass{article} \begin{document} \SweaveOpts{concordance=TRUE} \section{Overview} This is the overview. \SweaveInput{Child.Rnw} \end{document} Child.Rnw: % !Rnw root = Master.Rnw \secti
\documentclass{article}
\begin{document}
\SweaveOpts{concordance=TRUE}
\section{Overview}
This is the overview.
\SweaveInput{Child.Rnw}
\end{document}
Child.Rnw:
% !Rnw root = Master.Rnw
\section{Analysis}
This is the analysis.
<<analysis>>=
summary(cars)
@
%!Rnw root=Master.Rnw
\第{分析}节
这就是分析。
=
摘要(车辆)
@
我单击“编译PDF”并获取\sAveOpts和\sAveInput的“未定义的控制序列”
我正在使用最新的R Studio(0.98.490)
建议?该项目设置为使用knitr而不是Swave进行编织 我转到Tools/Options/swave/“Weave Rnw files using”,并将其更改为swave 这使得记录在案的例子发挥了作用