Skip to content
Back to formatted view

Raw Message

Message-ID: <7322CE5A-8B63-4CF9-9A0E-4544718FA988@r-project.org>
Date: 2011-07-05T14:13:42Z
From: Simon Urbanek
Subject: building a package on a Mac: pdflatex
In-Reply-To: <1A826D8B-8F90-442D-A62C-5693E1A196A6@imperial.ac.uk>

On Jul 5, 2011, at 9:10 AM, Federico Calboli wrote:

> Simon,
> 
>> both are entirely irrelevant - run
>> system("pdflatex --version")
>> in R - that is the only thing that counts. If it shows an error, then you don't have pdflatex on your PATH which would be the problem. As a side note, you are showing two separate TeX packages which may not help you to find out what breaks in your setup in general ...
> 
> 
> thanks for the hint. Unfortunately:
> 
> system("pdflatex --version")
> /bin/sh: pdflatex: command not found
> 
> doing a simple
> 
> PATH=$PATH:/user/texbin 
> 
> fixed it if I use R and package.skeleton() from the terminal. If I use the R gui (from the standard R 2.13.0 CRAN download) it still does not find pdflatex and does not build a usable package skeleton.
> 
> In any case, your hit solved my issue. Now, how do I set the path for the R gui?
> 

Well, the R way regardless of where you are is to use .Renviron - that works anywhere including the shell and the GUI. What you set there is really up to you - you can set R_PDFLATEXCMD to be on the safe side or you can set PATH instead.

Cheers,
Simon