[R-SIG-Mac] texi2dvi error "Sweave" and "exams" (Paul Ossenbruggen)
Berend Hasselman
bhh at xs4all.nl
Mon Aug 20 22:00:18 CEST 2012
On 20-08-2012, at 21:30, Simon Urbanek wrote:
>
> On Aug 20, 2012, at 2:58 PM, Berend Hasselman <bhh at xs4all.nl> wrote:
>
>>
>> On 20-08-2012, at 20:25, Paul Ossenbruggen wrote:
>>
>>>> I downloaded and installed the big MacTex.pkg and MacTeXtras package and checked it out (http://tug.org/mactex/). It works fine. The TeX Distribution file (Systems Preferences) has TeXLive-2012 Intel 4 shown with a button.
>>>>
>>>> "exams" does not work as it suppose to.
>>>
>>> The Error:
>>>
>>>> sol <- exams(myexam)
>>> Error in texi2dvi(out_tex[j], pdf = TRUE, clean = TRUE, quiet = quiet) :
>>> Running 'texi2dvi' on 'plain1.tex' failed.
>>>> sol
>>> [1] 262.609
>>>
>>
>> Your example was
>>
>> myexam <- list(
>> + "boxplots",
>> + c("tstat", "ttest", "confint"),
>> + c("regression", "anova"),
>> + "scatterplot",
>> + "relfreq"
>> + )
>> sol <- exams(myexam)
>>
>> I have run thus after installing package exams.
>> It fails the same way with the error message
>>
>> Error in texi2dvi(out_tex[j], pdf = TRUE, clean = TRUE, quiet = quiet) :
>> Running 'texi2dvi' on 'plain1.tex' failed.
>>
>>
>>> I tried the following suggestions to overcome the following "No entry in PATH for /usr/texbin."
>>>
>>> #1 Terminal output:
>>>
>>> PJO-MacBook-Pro:~ PJO$ echo $PATH
>>> /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin
>>
>> Looks ok.
>>
>
> So are you running R in Terminal? Note that the PATHs are entirely different depending how you run R (see Mac FAQ).
Arghh!
In R GUI Sys.getenv("PATH") gives
[1] "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"
and in R in Terminal the same command gives
[1] "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:/Users/berendhasselman/bin"
Thanks. I did Sys.setenv(PATH=paste(Sys.getenv("PATH"),"/usr/texbin",sep=":")) in R GUI and now it works in R GUI and Terminal R.
Berend
More information about the R-SIG-Mac
mailing list