Hi Mike,<div><br></div><div>I use the same system. Are you using the GUI? The problem, I think, is that the Mac GUI does not set the PATH completely. What I suggest (this is what I do) is create the file ~/.Rprofile and add the following lines:</div>
<div><br></div><div><div>Sys.setenv("PATH" = paste(Sys.getenv("PATH"),"/usr/texbin",sep=":"))</div><div>options(tikzMetricsDictionary = path.expand("~/.tikzMetricsDictionary"))</div>
<div><br></div><div>This will set the path to your latex compiler and also use a global metrics file. The advantage the second line is that tikzDevice will cache string width calculations and access them later for speed. </div>
<div><br></div><div>Anyway, I suspect that this will fix your problem. </div><div><br></div><div>Cheers,</div>-Cameron<br><br>--<br>Cameron Bracken<br>Graduate Research Assistant<br>CADSWES<br>University of Colorado at Boulder<br>
<a href="mailto:cameron.bracken@colorado.edu">cameron.bracken@colorado.edu</a><br>(707) 986-8633<br>
<br><br><div class="gmail_quote">On Wed, Oct 28, 2009 at 9:36 AM, Mike Lawrence <span dir="ltr"><<a href="mailto:Mike.Lawrence@dal.ca">Mike.Lawrence@dal.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<br>
<br>
I'm having troubles running TikzDevice. My OS is fresh install of Mac<br>
10.6, I'm running R 10.0, I have the 2008 MacTex distribution<br>
installed and running fine, and I was able to use "tlmgr install pgf"<br>
to install PGF. However, when I attempt to library(tikzDevice), I get<br>
the error below despite the fact that options('latexcmd') seems to<br>
properly point to "latex" as the path to the installed compiler. Help?<br>
<br>
Loading required package: filehash<br>
filehash: Simple key-value database (2.0-1 2008-12-19)<br>
tikzDevice: A Device for R Graphics Output in PGF/TikZ Format (v0.4.8)<br>
Checking for a LaTeX compiler...<br>
<br>
Error in fun(...) :<br>
<br>
An appropriate LaTeX compiler could not be found.<br>
Access to LaTeX is required in order for the TikZ device<br>
to produce output.<br>
<br>
The following places were tested for a valid LaTeX compiler:<br>
<br>
A pre-existing value of the global option tikzLatex<br>
The R environment variable R_LATEXCMD<br>
The R environment variable R_PDFLATEXCMD<br>
The global option latexcmd<br>
The PATH using the command latex<br>
The PATH using the command pdflatex<br>
<br>
If you have a working LaTeX compiler, try one of the<br>
following solutions:<br>
<br>
Set the path to your compiler as the value of either latexcmd or<br>
tikzLatex in .Rprofile using options().<br>
<br>
Set the path to your compiler as the value of either R_LATEXCMD or<br>
R_PDFLATEXCMD in .Renviron.<br>
<br>
Ensure the folder containing your compiler is included in PATH.<br>
<br>
Error : .onLoad failed in 'loadNamespace' for 'tikzDevice'<br>
Error: package/namespace load failed for 'tikzDevice'<br>
<br>
<br>
<br>
--<br>
Mike Lawrence<br>
Graduate Student<br>
Department of Psychology<br>
Dalhousie University<br>
<br>
Looking to arrange a meeting? Check my public calendar:<br>
<a href="http://tr.im/mikes_public_calendar" target="_blank">http://tr.im/mikes_public_calendar</a><br>
<br>
~ Certainty is folly... I think. ~<br>
_______________________________________________<br>
Tikzdevice-bugs mailing list<br>
<a href="mailto:Tikzdevice-bugs@lists.r-forge.r-project.org">Tikzdevice-bugs@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/tikzdevice-bugs" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/tikzdevice-bugs</a><br>
</blockquote></div><br></div>