Closed p-robertobakker closed 9 years ago
Can I ask how you knitted the document. If you use knitr::knit()
then you won't have other knitr functions loaded. and would likely get the first error.
On the second issues see the Ch. 11 Errata http://christophergandrud.github.io/RepResR-RStudio/errata.htm
(the %%
are simply for comments in this example).
Thx Roberto Ps may putting more than two % could be clearer for novices? Than it is clear it has nothing to do with a chunk Op 30 dec. 2014 18:12 schreef "Christopher Gandrud" < notifications@github.com>:
Can I ask how you knitted the document. If you use knitr::knit() then you won't have other knitr functions loaded. and would likely get the first error.
On the second issues see the Ch. 11 Errata http://christophergandrud.github.io/RepResR-RStudio/errata.htm
(the %% are simply for comments in this example).
— Reply to this email directly or view it on GitHub https://github.com/christophergandrud/Rep-Res-Book/issues/56#issuecomment-68375149 .
Hm, I guess RStudio isn't fully loading knitr when you click knit pdf
Thanks for the idea on the %%.
Hi Christopher,
The solution is: Tools > Project Options > Sweave -> set to Knitr and press OK. Everything went ok.
And I deleted the redundant ggplot(...) as mentioned in Ch. 11 Errata http://christophergandrud.github.io/RepResR-RStudio/errata.htm. Perfect! Only the Citation did not work which is logical as I do not have the citation.
On little thing - the webpage changed, maybe good to mention in Ch11 or refer to errata Ch6.
Bw and happy new year, Roberto
Great. Just added a reference to Ch 6 errata.
Dear Christopher,
I found too issues in the syntax
Syntax part on pg 208: error message: ##(chunk 1) objects 'opts_chunk' not found## Solution: library(knitr) first. It works but I do not quite understand why library(knitr) is necessary Xie describes in his book something about cache. Xie, Yihui (2013-09-09). Dynamic Documents with R and knitr (Chapman & Hall/CRC The R Series) (Page 75).
Syntax part on pg 209: error message: ##Error in p + o : non-numeric argument to binary operator In addition: Warning message: Incompatible methods ("+.gg", "Ops.data.frame") for "+" ## I cannot find the solution.
Question: The syntax uses %%, is this because .Rnw is being translated into .tex?
Best,
P. Roberto Bakker