[R-SIG-Mac] texi2dvi error "Sweave" and "exams" (Paul Ossenbruggen)

Berend Hasselman bhh at xs4all.nl
Mon Aug 20 20:58:17 CEST 2012


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.

When I run exams(myexam,quiet=FALSE) the same error  message appears as in your case.
Error in texi2dvi(out_tex[j], pdf = TRUE, clean = TRUE, quiet = quiet) : 
 Running 'texi2dvi' on 'plain1.tex' failed.
Output:
You don't have a working TeX binary (tex) installed anywhere in
your PATH, and texi2dvi cannot proceed without one.  If you want to use
this script, you'll need to install TeX (if you don't have it) or change
your PATH or TEX environment variable (if you do).  See the --help
output for more details.

For information about obtaining TeX, please see http://www.tug.org.  If
you happen to be using Debian, you can get it with this command:
 apt-get install tetex-bin

I have the full MacTeX2012 installed.
So I don't know what's wrong. Maybe you should contact the author of the package.


Berend



More information about the R-SIG-Mac mailing list