Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/65.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在R studio中包含Swave文档?_R_Sweave_Rstudio - Fatal编程技术网

在R studio中包含Swave文档?

在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

我创建了两个文件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

\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

这使得记录在案的例子发挥了作用