This solution explains ESS knitr workflow and it works as explained. However, it does not explain how to knit an Rnw file containing natbib references. Similar question have been asked here and the answer is to related to ess-swv library which is obselete.

How can I knit with ESS an Rnw file containing a natbib reference like in the example bellow. The exporter I am using in ESS is pdflatex and the weaver is knitr.



<<setup, include=FALSE, cache=FALSE>>=

<<normal-sample, echo=FALSE>>=
x <- rnorm(100)

The moon in June is like a big balloon \citep{smith2012}.



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.