osx - R cmd check not locating texi2pdf on mac after R 3.1.3 upgrade -


does have link clear instructions on how install , configure necessary latex packages build r packages on mac?

i have scripts building , checking r packages on mac server. seemed work fine, after upgrading r 3.1.3, many of packages started failing with

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 thread seemed suggest need more recent version texinfo (5.2) installed default. , apparently i've i've got wrong version installed in wrong location?

which texi2pdf /sw/bin/texi2pdf  texi2pdf --version texi2pdf (gnu texinfo 5.1) 5234 

(same version reported when running system('texi2pdf --version') in r )

this thread gives link texinfo 5.2 source collection:

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

but i'm not familiar installing executable tar.gz file on mac. r mac pages found suggest installing mactex, tried didn't seem help.


** update: ** additional discussion of related problems on r-sig-mac mailing list: https://groups.google.com/forum/#!topic/r-sig-mac/xjyufdl5ezk


update: here i'm at:

  1. i removed /sw directory uninstall fink , of packages (couldn't figure out how upgrade it)

  2. installed homebrew

  3. brew install texinfo installs version 5.2 package,

but generates message this formula keg-only, means not symlinked /usr/local , installs in in /usr/local/cellar/texinfo/5.2/bin means not on path , r won't find it.

  1. manually symlink each of texi2pdf, texi2dvi , etc vincent suggests (this because r has /usr/local/bin location default in tools::texi2dvi function?

  2. edited /etc/paths file on system add /usr/local/bin finds brew installed 5.2 version before finds before osx system supplied version 4.6 version. may not necessary because r has hardcoded?

all of gets rid of "can't find texi* errors", , gives me bunch of latex errors (which don't see on unix , windows builds) i'm still kind of stuck.

this seems hackish, there must cleaner way? sounds stuff tex , mac sketchy @ moment? https://tex.stackexchange.com/questions/208181/why-did-my-tex-related-gui-program-stop-working-in-mac-os-x-yosemite

this worked me on mavericks , on yosemite:

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

Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -