Not sure if this is a issue with knitr/r-studio or my MikTex installation. I get the following error when trying to knit a simple .Rnw where the plot is using dev='tikz':
Creating new TikZ metrics dictionary in:
knitr-example-tikzDictionary
pdflatex.exe: Windows API error 161: The specified path is invalid.
pdflatex.exe: Data: F:\R\code\figure\.:F:/R/code:
Warning: running command 'C:\PROGRA~1\MIKTEX~1.9\miktex\bin\pdflatex.exe "minimal-boring-plots1.tikz"' had status 1
label: boring-plots (with options)
List of 4
$ dev : chr "tikz"
$ fig.width : num 8
$ fig.height: num 8
$ out.width : chr "1\\linewidth"
Error in process_file(text) :
Quitting from lines 45-50: Error : failed to compile figure/minimal-boring-plots1.tikz to PDF
If I copy my .Rnw file to the local C:\ drive, it works fine (I google'd the MikTex error and found that it for some reason doesn't like networked drives but that was in the context of bibtex and the issue was fixed back in 2007). However, I can compile normal pdf plots on the networked drive. So not sure where the problem is or anyone else has had this issue.
Any suggestions/workarounds would be helpful.
Thanks
But the setup is as follows:
> sessionInfo()
R version 2.15.0 (2012-03-30)
Platform: i386-pc-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] graphics grDevices utils datasets stats methods base
other attached packages:
[1] tikzDevice_0.6.2 filehash_2.2-1 knitr_0.5 ggplot2_0.9.0
loaded via a namespace (and not attached):
[1] codetools_0.2-8 colorspace_1.1-1 dichromat_1.2-4 digest_0.5.2 evaluate_0.4.2
[6] formatR_0.4 grid_2.15.0 highlight_0.3.1 MASS_7.3-17 memoise_0.1
[11] munsell_0.3 parser_0.0-14 plyr_1.7.1 proto_0.3-9.2 RColorBrewer_1.0-5
[16] Rcpp_0.9.10 reshape2_1.2.1 scales_0.2.0 stringr_0.6 tools_2.15.0