On 20-08-2012, at 21:30, Simon Urbanek wrote:
>
> On Aug 20, 2012, at 2:58 PM, Berend Hasselman <[email protected]> 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
_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac