djmurphy420 / ggplot2-transition-guide

15 stars 5 forks source link

a few knitr issues #1

Open yihui opened 12 years ago

yihui commented 12 years ago
djmurphy420 commented 12 years ago

Thank you for the corrections, Yihui.

Does Sweave have to be loaded as a LaTeX package for \SweaveOpts{} to be read? I noticed in the code to the knitr manuals that the \SweaveOpts{} line was commented out, so I'm curious as to what happens if Sweave is loaded as a LaTeX package but the document is run in R with knit() rather than Sweave().

Dennis


From: Yihui Xie reply@reply.github.com To: Dennis Murphy djmurphy0420@yahoo.com Sent: Thursday, January 26, 2012 6:36 PM Subject: [ggplot2-transition-guide] a few knitr issues (#1)


Reply to this email directly or view it on GitHub: https://github.com/djmurphy420/ggplot2-transition-guide/issues/1

yihui commented 12 years ago

No, sweave is not needed. It is just a matter of syntax. And it does not matter where is \SweaveOpts{}; it can appear after %. I wrote it there because I want to make the document as LaTeX-ish as possible (\SweaveOpts{} itself is not a valid LaTeX command).