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:
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:
i removed
/sw
directory uninstallfink
, of packages (couldn't figure out how upgrade it)installed homebrew
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.
manually symlink each of
texi2pdf
,texi2dvi
, etc vincent suggests (this because r has/usr/local/bin
location default intools::texi2dvi
function?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
Post a Comment