Skip to content

[R-pkg-devel] checking PDF version of manual

7 messages · Brian G. Peterson, Uwe Ligges, Patrick Giraudoux

#
I am trying to check a package using R 3.2.3 on Windows

R cmd check --as-cran pgirmess

but surprisingly, the check get suspended on "checking PDF version of 
manual ..."

* checking data for non-ASCII characters ... OK
* checking data for ASCII and uncompressed saves ... OK
* checking examples ... OK
* checking PDF version of manual ...

then nothing happens, and the prompt stays on that...

Any idea about what is happening ?

Patrick Giraudoux
#
Le 31/01/2016 11:37, Patrick Giraudoux a ?crit :
I am trying to "debug", now exploring  Rd2pdf, and get this:

U:\Users\pgiraudo2\Documents\R\pgir_arch\pgirmess_arch\151104v1.6.3>rcmd 
Rd2pdf
pgirmess
Hmm ... looks like a package
Converting Rd files to LaTeX .....
Creating pdf output from LaTeX ...
Warning: running command 
'"C:\PROGRA~2\MIKTEX~1.9\miktex\bin\texify.exe"  --pdf
"Rd2.tex" --max-iterations=20 -I 
"C:/PROGRA~1/R/R-32~1.3/share/texmf/tex/latex"
-I "C:/PROGRA~1/R/R-32~1.3/share/texmf/bibtex/bst"' had status 1
Error : running 'texi2dvi' on 'Rd2.tex' failed

LaTeX errors:
!pdfTeX error: pdflatex.EXE (file ec-inconsolata): Font ec-inconsolata 
at 540 n
ot found
  ==> Fatal error occurred, no output PDF file produced!

Warning: running command 
'"C:\PROGRA~2\MIKTEX~1.9\miktex\bin\texify.exe"  --pdf
"Rd2.tex" --max-iterations=20 -I 
"C:/PROGRA~1/R/R-32~1.3/share/texmf/tex/latex"
-I "C:/PROGRA~1/R/R-32~1.3/share/texmf/bibtex/bst"' had status 1
Error : running 'texi2dvi' on 'Rd2.tex' failed

LaTeX errors:
!pdfTeX error: pdflatex.EXE (file ec-inconsolata): Font ec-inconsolata 
at 540 n
ot found
  ==> Fatal error occurred, no output PDF file produced!

Error in running tools::texi2pdf()

Looks like there is someting wrong with the call to MIKTEX and a font 
missing. However I did not change anything to the MIKTEX configuration 
(MIKTEK 2.9) which was working OK last time I packaged pgirmess...

Also I can not find out how to download an "ec-inconsolata" fond through 
the MIKTEX package manager

Any advise appreciated.

Cheers,

Patrick
#
Le 31/01/2016 12:13, Patrick Giraudoux a ?crit :
I have updated all packages of MIKTEX, but with no improvement. I ge the 
same error.

Question: does it comes from the MIKTEX installation (do I re-install 
it) or from rcmd Rd2pdf ?

Any other user having experienced the same problem ?

Patrick
#
The error says:
" Font ec-inconsolata at 540 not found"

So it looks like you need to install extra fonts.  I'm on linux, and 
haven't tried to do that on Windows in years, so I think that's about 
all I can do to help you out.

Regards,

Brian
On 01/31/2016 05:44 AM, Patrick Giraudoux wrote:

  
    
#
Eitehr the file is no longer there or corrupted, or the database that 
know about the file got corrupted.

For the former, re-instal the package, fr the latter, just go to MikTeX 
settings and run "refresh FNDB" and "Update Formats".

You can also upload the package to the winbuilder service to verify - it 
also uses MikTeX 2.9 ...


Best,
Uwe Ligges
On 31.01.2016 12:13, Patrick Giraudoux wrote:
#
Le 31/01/2016 14:36, Uwe Ligges a ?crit :
Thanks. Meanwhile I have already reinstalled MikTEX 2.9,  run "refresh 
FNDB" and "Update Formats", and still get a similar error.... There 
should be something with MikTEX since the package was submitted to CRAN 
and went through successfully (Kurt Hornik).

A bit beyond my understanding...


U:\Users\pgiraudo2\Documents\R\pgir_arch\pgirmess_arch\On work>rcmd 
Rd2pdf pgirmess
Hmm ... looks like a package
Converting Rd files to LaTeX .....
Creating pdf output from LaTeX ...
Warning: running command 
'"C:\PROGRA~2\MIKTEX~1.9\miktex\bin\texify.exe"  --pdf
"Rd2.tex" --max-iterations=20 -I 
"C:/PROGRA~1/R/R-32~1.3/share/texmf/tex/latex"
-I "C:/PROGRA~1/R/R-32~1.3/share/texmf/bibtex/bst"' had status 1
Error : running 'texi2dvi' on 'Rd2.tex' failed

LaTeX errors:
!pdfTeX error: pdflatex.EXE (file ts1-zi4r): Font ts1-zi4r at 540 not found
  ==> Fatal error occurred, no output PDF file produced!

Warning: running command 
'"C:\PROGRA~2\MIKTEX~1.9\miktex\bin\texify.exe"  --pdf
"Rd2.tex" --max-iterations=20 -I 
"C:/PROGRA~1/R/R-32~1.3/share/texmf/tex/latex"
-I "C:/PROGRA~1/R/R-32~1.3/share/texmf/bibtex/bst"' had status 1
Error : running 'texi2dvi' on 'Rd2.tex' failed

LaTeX errors:
!pdfTeX error: pdflatex.EXE (file ts1-zi4r): Font ts1-zi4r at 540 not found
  ==> Fatal error occurred, no output PDF file produced!

Error in running tools::texi2pdf()
#
Le 31/01/2016 15:22, Patrick Giraudoux a ?crit :
I am closer to the solution. Rd2pdf (and MikTeX) works fine when I am 
running it as administrator. Does not work (with subsequent errors) when 
I run it on my usual user account (with limited rights). Now I remember 
that 2 weeks ago our computer manager has created a new user account on 
my labtop... Suspect some access rights may have been modified by him... 
Will see him tomorow...

Best,

Patrick