R cmd does not check for texi2pdf on mac after updating R 3.1.3

Does anyone have a link for cleaning instructions on installing and configuring the necessary latex packages to build R packages on Mac?

I have several scripts to build and test R packages on a Mac server. They seemed to work fine, but after upgrading to R 3.1.3 many of the packages started with an error

Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet,  : 
  Running 'texi2dvi' on 'networkVignette.tex' failed.
Messages:
sh: /usr/local/bin/texi2dvi: No such file or directory
Calls: <Anonymous> -> texi2pdf -> texi2dvi
Execution halted

I found a stream that apparently suggested that I needed a newer version of texinfo (5.2) than what was installed by default. And apparently I have the wrong version installed in the wrong place?

which texi2pdf
/sw/bin/texi2pdf

texi2pdf --version
texi2pdf (GNU Texinfo 5.1) 5234

(the same version is reported when running system('texi2pdf --version')in R)

This thread provides a link to the original texinfo 5.2 collection:

http://r.789695.n4.nabble.com/R-CMD-build-looking-for-texi2dvi-in-the-wrong-place-R-devel-td4701706.html

tar.gz mac. R mac, , MacTex, , , , .


** : ** R-SIG-mac: https://groups.google.com/forum/#!topic/r-sig-mac/xjyuFdl5Ezk


Update: :

  • /sw fink ( , )

  • brew install texinfo 5.2,

, This formula is keg-only, which means it was not symlinked into /usr/local /usr/local/Cellar/texinfo/5.2/bin, , , R .

  1. texi2pdf, texi2dvi .., vincent ( , R /usr/local/bin tools::texi2dvi?

  2. /etc/paths , /usr/local/bin, brew 5.2 , , osx 4.6. , R ?

" -" ( unix windows), .

, ? , ? https://tex.stackexchange.com/questions/208181/why-did-my-tex-related-gui-program-stop-working-in-mac-os-x-yosemite

+4
3

:

ln -s /usr/bin/texi2dvi /usr/local/bin/texi2dvi
ln -s /usr/bin/texi2pdf /usr/local/bin/texi2pdf
+2

Lion which texi2pdf Terminal/bash GUI R.app , :

system("which texi2pdf")
#/opt/local/bin/texi2pdf

, MacPorts. , /usr/local/bin/ - , R-. UNIX, , PATH, R . ( , , .) Tex - MacTex, https://www.tug.org/mactex/. cobbled-together:

system("echo $PATH")
# /opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:/usr/X11R6/bin

R, .Rprofile - () :

Sys.setenv(PATH="/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:/usr/X11R6/bin")

, /sw/bin/ fink, . - , UNIX weenies , , R-. , .

, , R, :

Sys.setenv(PATH=paste( Sys.getenv()$PATH, # should be the character string of the $PATH
                       "/sw/bin/", sep=":")
            )

, , , , .

0

, Mavericks 10.9.5 (factory ) R 3.1.

Turns out I didn't have pdfLaTex. I went to this page: http://tug.org/mactex/ and downloaded the MacTex installation package. It is large (> 2 GB), but after I installed it, the problems with the assembly of R-packages went away.

Hope this can be helpful to anyone who encounters this error message.

0
source

All Articles