Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
LinuxでR Sweaveコマンドをknitrに変更しようとしています。現在の (R Sweave) コマンドは、[オプション] > [構成] の下にあります。
R CMD Sweave %.Rnw
Yihui は、ここで Windows でこれを行う方法の例を示します。
Linux(ubuntu)でこれをどのように行いますか?
RscriptRscript.exeLinuxで使用して呼び出されることはありません。Rscript.exe を に変更するだけRscriptです。
Rscript
Rscript.exe
子Rnwドキュメントが\Sexpr{knit_child('path')}.
\Sexpr{knit_child('path')}
Rscript -e "library(knitr); knit('%.Rnw')"代わりに使用してください。
Rscript -e "library(knitr); knit('%.Rnw')"
と の出力の違いを知っている場合は、コメントに記載してknit::knit2pdf()くださいknit()。
knit::knit2pdf()
knit()