I have gone down a rabbithole troubleshooting this so hoping that you folks may be able to quickly unblock me.
All I need to do is to run devtools::build_manual() to generate a pdf manual for an internal R package. This runs fine on my laptop but I need to run it on a Server Pro instance that’s running on a RHEL7 machine.
devtools::build_manual() is currently failing with error "Running 'texi2dvi' on 'Rd2.tex' failed." and message "sh: /usr/bin/texi2dvi: No such file or directory", with final error "Error in running tools::texi2pdf()".
?tools::texi2pdf() advises the following "A shell script texi2dvi is part of GNU's texinfo. Several issues have been seen with released versions, so if yours does not work correctly try R_TEXI2DVICMD=emulation." I have tried setting that as an option but the same error as above is persisting (as if this option is being overridden or not picked up).
Finally I considered yum installing the texinfo-tex rpm. In googling this I noticed a number of links related to installations of R. We of course installed R on this machine via RStudio's rpms (RStudio Install R - RStudio Documentation). I figured that texinfo may be baked into this RPM and something may be wrong with my environment?
Before I hack any further in manually installing texinfo, I wanted to reach out as this seems like a pretty basic bug with a feature that should be pretty standard for Server Pro and devtools users.