Cc'ing to the author of this commit.
If TeXLive >= 2013 or a certain version of inconsolata/zi4 is
required, I think it should be documented somewhere, otherwise please
consider backward compatibility with TeXLive <= 2012. Personally I
prefer the latter, given how infrequently TeXLive is upgraded. It is
not unusual to see TeXLive that has been a few years older than its
latest version.
One possible solution is to test the version of inconsolata or zi4:
\@ifpackagelater{inconsolata}{2013/06/09}{
% use noupquote
}
{
% do not use
}
although I do not quite understand the rationale to write a homemade
version of upquote in Rd.sty...
Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Web: http://yihui.name
On Wed, Jun 4, 2014 at 1:18 PM, Yihui Xie <xie at yihui.name>
wrote:> Hi,
>
> Due to a change in Rd.sty a few days ago
>
(https://github.com/wch/r-source/commit/620eb9a#diff-3bf3d821c6faae50cd6ec931f6f63296L272),
> the default installation of TeXLive 2009 or 2012 no longer works when
> building Rd to PDF. The error log is like this:
>
> ==============> Converting Rd files to LaTeX .....
> Creating pdf output from LaTeX ...
> Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet, :
> Running 'texi2dvi' on 'Rd2.tex' failed.
> LaTeX errors:
> ! Package keyval Error: noupquote undefined.
>
> See the keyval package documentation for explanation.
> Type H <return> for immediate help.
> ...
> ! Emergency stop.
> ...
>
> l.37 \ProcessOptions*
>
> ! ==> Fatal error occurred, no output PDF file produced!
> Output:
> This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
> entering extended mode
> LaTeX2e <2009/09/24>
> Babel <v3.8l> and hyphenation patterns for english, usenglishmax,
dumylang, noh
> yphenation, loaded.
> (./Rd2.tex (/usr/share/texmf-texlive/tex/latex/base/book.cls
> Document Class: book 2007/10/19 v1.4h Standard LaTeX document class
> (/usr/share/texmf-texlive/tex/latex/base/bk10.clo))
> (/home/yihui/repos/r-source/share/texmf/tex/latex/Rd.sty
> (/usr/share/texmf-texlive/tex/latex/base/ifthen.sty)
> (/usr/share/texmf-texlive/tex/latex/tools/longtable.sty)
> (/usr/share/texmf-texlive/tex/latex/tools/bm.sty)
> (/usr/share/texmf-texlive/tex/latex/base/alltt.sty)
> (/usr/share/texmf-texlive/tex/latex/tools/verbatim.sty)
> (/usr/share/texmf-texlive/tex/latex/ltxmisc/url.sty)
> (/usr/share/texmf-texlive/tex/latex/base/textcomp.sty
> (/usr/share/texmf-texlive/tex/latex/base/ts1enc.def))
> (/usr/share/texmf-texlive/tex/latex/base/fontenc.sty
> (/usr/share/texmf-texlive/tex/latex/base/t1enc.def))
> (/usr/share/texmf-texlive/tex/latex/psnfss/times.sty)
> (/usr/share/texmf-texlive/tex/latex/inconsolata/inconsolata.sty
> (/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty)
>
> ! Package keyval Error: noupquote undefined.
>
> See the keyval package documentation for explanation.
> Type H <return> for immediate help.
> ...
>
> l.37 \ProcessOptions*
>
> ?
> ! Emergency stop.
> ...
>
> l.37 \ProcessOptions*
>
> ! ==> Fatal error occurred, no output PDF file produced!
> Transcript written on Rd2.log.
> Error in running tools::texi2pdf()
> ==============>
> Here is my sessionInfo():
>
>> sessionInfo()
> R Under development (unstable) (2014-06-04 r65854)
> Platform: x86_64-unknown-linux-gnu (64-bit)
>
> locale:
> [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
> [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
> [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
> [7] LC_PAPER=en_US.UTF-8 LC_NAME=C
> [9] LC_ADDRESS=C LC_TELEPHONE=C
> [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
>
> attached base packages:
> [1] stats graphics grDevices utils datasets methods base
>
> $ pdflatex --version
> pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian)
> kpathsea version 5.0.0
> Copyright 2009 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
>
> The problem is reproducible with TeXLive 2012 and Ubuntu 12.04. I went
> through the R-admin manual, and I did not seem to find a requirement
> of the TeXLive version there.
>
> Here is a minimal foo.Rd that shows the problem when running `Rd CMD
> Rd2pdf foo.Rd`:
>
> \name{foo}
> \alias{foo}
> \title{Foo}
> \description{
> Bar.
> }
>
> Regards,
> Yihui
> --
> Yihui Xie <xieyihui at gmail.com>
> Web: http://yihui.name