R, RStudio, knitr, apa6, citations and LaTeX minimal working example

Nota bene: Original post thrown up quickly to promote usage. Some helpful edits have been made, but as usual, continue at your own risk.

I detest copy-pasting analysis results (laziness is a virtue), so my current statistical analysis workflow uses the knitr package to convert results from R into a LaTeX file and then into a PDF report (by pressing one button). After months of using this power only for Beamer presentations and statistics homework assignments, I’ve figured out how to add the apa6 package and automatic bibliography generation to the process for building a reproducible manuscript. This post shares the framework, in hopes that free some readers of the torture that is copy-pasting from SPSS to Excel to Word–and then needing to update the analysis.

(more…)

Read More