Problem with R CMD check and the inconsolata font business.
On 11/3/2011 3:30 PM, Brian Diggs wrote:
<SNIP>
The error on R CMD check I get is: * checking PDF version of manual ... WARNING LaTeX errors when creating PDF version. This typically indicates Rd problems. LaTeX errors found: !pdfTeX error: pdflatex.EXE (file ec-inconsolata): Font ec-inconsolata at 540 n ot found ==> Fatal error occurred, no output PDF file produced!
I think this is the same as/similar to the problem I had before I installed the inconsolata (LaTeX) package from CTAN. Since Brian does Windoze I cannot advise as to how to install the package on his system, but I presume it is not too difficult --- once you know how! :-)
I thought that making sure the proper latex packages were installed would be sufficient, but apparently not. I found the actual font at http://www.levien.com/type/myfonts/Inconsolata.otf, downloaded it, and installed it. It shows up in my list of fonts available (as Inconsolata Medium) via the control panel. However, I still get the same error from R CMD check. I tried rebuilding the TeX filename database, but that didn't help. I've searched my drive for any mention of inconsolata, and the hits are:
<SNIP> Well, I figured it out. Or at least got it working. I had to run initexmf --mkmaps because apparently there was something wrong with my font mappings. I don't know why; I don't know how. But it works now. I think installing the font into the Windows Font directory was not necessary. I'm including the solution in case anyone else has this problem.
Brian S. Diggs, PhD Senior Research Associate, Department of Surgery Oregon Health & Science University