Latest is texlive 2011; so I updated to it but I started getting this error
Error in get("tikz", envir = as.environment("package:tikzDevice"))(..., :
Graphics API version mismatch
Error was due to
tikzDevice
package being older than what knitr
package expectsTo fix this problem, install the repository version of
tikzDevice
install.packages( 'tikzDevice', repos = 'http://r-forge.r-project.org' )
After that all is good. (ref thread)
Thanks for posting the solution :)
ReplyDeleteThis is the answer to FAQ 1: https://github.com/yihui/knitr/blob/master/FAQ.md
I should've RTM! :) The problem was that I was using Ubuntu distributed R, which is out of date. It didn't have the correct packages.
ReplyDelete