yihui/knitr — Issue #24: Tutorial for beginners
Author: JanSchulz
Created: 2011-12-01 18:23:50+00:00
State: open

I never did sweave, but I did ok in latex and R: I couldn't grasp how the two worlds/workflows of analysis (in R or SPSS) and writing in TexnicCenter could come together. I would love to see a beginners tutorial showing this workflow when preparing a real paper:

Do an analysis (for example a regression, two models)
write a text(in an latex editor? -> syntax highlighting)
integrate a reference (biblatex -> I can do that in the regular editor, but how does that change with knitr?)
integrate the results
- p-values, whatever, nicely formatted/rounded in the regular text
- table of the regression result, formated in booktab style, properly described and numbered
- plot (regression diagnostics,...)
compile the resulting pdf

(let the reader marvel at the productivty gained over the old workflow using tables cut and pasted from SPSS to excel, exported to latex and "postprocessed" ... and then done again because the dataset changed)

Thanks a lot!