The downside is missing for creating an R-vignette

On Ubuntu 14.04 with texlive, checking an R package, for example with devtools check() , will return:

 LaTeX errors found: ! LaTeX Error: File `inconsolata.sty' not found. Type X to quit or <RETURN> to proceed, or enter new name. (Default extension: sty) ! Emergency stop. <read *> l.276 ^^M ! ==> Fatal error occurred, no output PDF file produced! 
+14
source share
4 answers

Installation texlive-fonts-extra should take care of it.

You can also (though probably not recommend it) say R so you don't use inconsolata. Just change:

 \DeclareOption{inconsolata}{\setboolean{ Rd@use @inconsolata}{true}} 

to

 \DeclareOption{inconsolata}{\setboolean{ Rd@use @inconsolata}{false}} 

in your Rd.sty file. When I install it:

 /usr/share/R/share/texmf/tex/latex/Rd.sty 

but a

 locate Rd.sty 

must find it on any system.

+19
source

I have Mac OSx, and the solution I made did not work for me.

It was a solution in my case to install mactex: https://tug.org/mactex/mactex-download.html

+1
source

I am using Homebrew on macOS and this worked for me:

 # LaTeX tools like pdflatex brew cask install basictex # Install texlive packages needed to build R package vignettes sudo tlmgr update --self sudo tlmgr update --all sudo tlmgr install titling framed inconsolata sudo tlmgr install collection-fontsrecommended 
+1
source

If you use the Travis continuous integration service , your problem may be with CTAN mirrors that are not yet updated.

The problem appears on the Travis R community forum :

may be due to a recent switch to TexLive-2019, as the LaTeX package manager does not seem to be able to find a mismatch in the repository.

...

It seems to me that the selected mirror was not updated until 2019, so I think this will resolve by itself when the mirrors pull up. If not, I can look at it.

In the meantime, I solved this problem by forcing the previous version of TeXLive to switch to OSX 10.12 in .travis.yml :

 # macOS 10.12 version osx_image: xcode9.2 

This Travis page shows the correspondence between versions of Xcode and OSX and the source stream in DevOps StackExchange .

0
source

All Articles