[Tikzdevice-bugs] newbie with a simple question

Charlie Sharpsteen chuck at sharpsteen.net
Wed Oct 6 20:08:08 CEST 2010


2010/10/6 הצעיר ירמיהו ס"ט <hatsair at gmail.com>

> Hello Cameron:
>
> Thank you for the answer. Because I only have Tiger (OS X 10.4.11), I could
> not install beyond 2.10.1. Could it be why only 0.4.8 of tikzDevice gets in
> there...
>

I believe 0.4.8 was the last release of the tikzDevice that was compiled
under R 2.10.x.  The R Project site does not provide pre-compiled R binaries
for Tiger anymore, but you can probably build it your self if you are so
inclined.


> I really do wish that it would work out of the box.
>
> Again my congratulations on making something that is obviously so useful...
> I just wish I could use it too.
>


Have you tried following any of the suggestions given in the error message
tikzDevice produces when it can't find your LaTeX compiler?

If you have a working LaTeX compiler, try one of the

following solutions:


> Set the path to your compiler as the value of either latexcmd or

tikzLatex in .Rprofile using options().


> Set the path to your compiler as the value of either R_LATEXCMD or

R_PDFLATEXCMD in .Renviron.


> Ensure the folder containing your compiler is included in PATH.


I suspect your problem is that MacTeX puts the programs it installs in
`/usr/texbin` instead of "traditional" places like `/usr/bin`.  `pdflatex`
is accessible from the Terminal because the MacTeX installer specifically
adds this folder to the list of folders that are checked for programs.
 However, the R.app GUI completely ignores the changes made by the MacTeX
installer--- hence `pdflatex` cannot be found by the Mac GUI unless you give
it some help.

You can help the GUI by following the suggestions in the error messages and
adding the path to the compiler you wish to use, say `/usr/texbin/pdflatex`,
to either .Rprofile or .Renviron.  If you don't know what these files are,
section 10.8 of the Introduction to
R<http://cran.r-project.org/doc/manuals/R-intro.html#Customizing-the-environment>manual
contains explanations.


For our part, we should probably add `/usr/texbin` to the list of places
tikzDevice checks by default.

Hope this helps!

-Charlie



> Melvyn
>
> 2010/10/6 Cameron Bracken <cameron.bracken at gmail.com>
>
> > yirmiyahou-
> >
> > I highly suggest you upgrade to the most recent version of R (2.11.1)
> > and tikzDevice (0.5.0) and see if that works.  There have been a lot
> > of improvements on both and it may work out of the box with the most
> > recent versions.
> >
> > -Cameron
> >
> >
> >
> > 2010/10/5 הצעיר ירמיהו ס"ט <hatsair at gmail.com>:
> > > Hello,
> > >
> > > Please excuse me if the setting is inappropriate for such a question...
> > >
> > > I very much like the idea of getting R graphical outputs in line with
> TeX
> > > via tikz. I simply encounter a simple installation problem. First
> > > install.packages("tikzDevice",
> > > repos="http://R-Forge.R-project.org") does not find the file and even
> > the
> > > default install command only finds version 0.4.8 regardless of the
> mirror
> > I
> > > use. (in fact that is the latest version found in
> > > http://cran.at.r-project.org/bin/macosx/universal/contrib/2.10/)
> > >
> > > Later on R says all kind of rubbish things... (like this: Checking for
> a
> > > LaTeX compiler... A working LaTeX compiler was found in: The R
> > environment
> > > variable R_LATEXCMD Global option tikzLatex set to: no latex in
> /usr/bin
> > > /bin /usr/sbin /sbin /usr/local/bin sh: line 1: no: command not found)
> > >
> > > I guess it does not find LaTeX... I am using MacTeX 2010 with OSX
> 10.4.11
> > >
> > > Your help will be much appreciated.
> > >
> > > Best,
> > > yirmiyahou
> > > _______________________________________________
> > > Tikzdevice-bugs mailing list
> > > Tikzdevice-bugs at lists.r-forge.r-project.org
> > >
> >
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/tikzdevice-bugs
> > >
> >
> _______________________________________________
> Tikzdevice-bugs mailing list
> Tikzdevice-bugs at lists.r-forge.r-project.org
>
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/tikzdevice-bugs
>


More information about the Tikzdevice-bugs mailing list