Closed ThomasWilli closed 4 years ago
! LaTeX Error: File
tikz.sty' not found.`
That is a problem. Which TeX distribution do you use? Is tikz.sty
installed?
I re-installed MacTeX this morning and I am not able to find tikz.sty
...
tikz.sty
should be part of the pgf
package.
According to my TeX Live Utility pgf
is installed...
But I can't find tikz.sty
.
Can you compile LaTeX documents that use tikz.sty
independent of R/tikzDevice?
What is the output of kpsewhich pgf.sty
and kpsewhich tikz.sty
on the command line?
I can compile LaTeX documents including \usepackage{tikz}
without problems. kpsewhich pgf.sty
and kpsewhich tikz.sty
return nothing.
Very odd. Just so that I understand your system correctly (I am not a MacTeX user ...): kpsewhich article.cls
does return the path to the article.cls
of your TeX installation.
Yes it does: ~/Library/TinyTeX/texmf-dist/tex/latex/base/article.cls
Now we are getting somewhere: It seems you have both MacTeX and TinyTeX installed. MacTeX includes pgf and is used by whatever tools you use for normal LaTeX content. TinyTeX does not contain pgf and is probably earlier in $PATH
than MacTeX and therefore used by tikzDevice
.
I suggest you decide which TeX installation you want to use and uninstall the other one. In case you want to use TinyTeX, you have to install the required packages tinytex::tlmgr_install(c('pgf', 'preview', 'xcolor'))
.
I deleted TinyTeX and everything seems to work. Thanks for clarifying this to me.
You are welcome.
I have the same problem, but I do not have tinytex on my computer. Should I make a new post?
@bridgeovertroubledhuman Sorry for the late reply. Yes, please create a new issue.
While I had tikzDevice working nicely, it no longer wants to work for me. When dealing with a simple plot as shown below it gives the above error. I updated all my packages (from dev as suggested here #114) but without success. I used a second machine and got the same error.
When I run
tikzTest("m")
it tells me thatHere is some more info: