Não foi possível enviar o arquivo. Será algum problema com as permissões?
Diferenças
Aqui você vê as diferenças entre duas revisões dessa página.
Ambos lados da revisão anterior Revisão anterior | Última revisão Ambos lados da revisão seguinte | ||
projetos:reproducibleresearch [2014/03/17 17:56] joel [Reproducible Research] |
projetos:reproducibleresearch [2014/03/17 18:03] joel [Reproducible Research] |
||
---|---|---|---|
Linha 80: | Linha 80: | ||
</code> | </code> | ||
- | Save this file as report.Rnw and run in R the following commands : | + | Save the commands above into a file called report.rnw and compile it into a LaTeX document according to the commands below. |
<code> | <code> | ||
library(knitr) | library(knitr) | ||
knit("report.rnw") | knit("report.rnw") | ||
- | system("tex2pdf report.tex") | ||
</code> | </code> | ||
+ | |||
+ | This will generate a .tex file that can be processed by a LaTex editor! | ||
+ | |||
+ | For linux and mac users, you can run : | ||
+ | |||
+ | <code> | ||
+ | > tex2pdf report.tex | ||
+ | </code> | ||
+ | |||
+ | to convert the result into a pdf | ||