[R-br] Erro ao criar pacote-manual-pdf

Fernando Mayer fernandomayer em gmail.com
Quinta Junho 28 17:26:38 BRT 2012


inconsolata eh a fonte usada no manual. Instale com

sudo apt-get install texlive-fonts-extra


---
Fernando Mayer
Universidade Federal de Santa Catarina - UFSC
Departamento de Ecologia e Zoologia - ECZ/CCB
URL: http://sites.google.com/site/fernandomayer
e-mail: fernandomayer [@] gmail.com


On Thu, Jun 28, 2012 at 4:46 PM, Emmanuel Arnhold
<emmanuelarnhold em yahoo.com.br> wrote:
> Ok Fernando. Obrigado. Instalei
> sudo su
> apt-get install texinfo
> apt-get install texlive
>
> Depois disso o pacote foi criado (aparentemente esta tudo ok), mas
> apareceram vários erros.
> Seguem os erros. Se tiver mais alguma dica eu agradeço.
>
> root em ubuntu:/home/emmanuel# R CMD Rd2pdf pacote
>
> Hmm ... looks like a package
> 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:
> ! 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.281 ^^M
>
> !  ==> 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))
> (/usr/share/R/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) NOT loading ae
> (/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) NOT loading lmodern
>
> ! LaTeX Error: File `inconsolata.sty' not found.
>
> Type X to quit or <RETURN> to proceed,
> or enter new name. (Default extension: sty)
>
> Enter file name:
> ! Emergency stop.
> <read *>
>
> l.281 ^^M
>
> !  ==> Fatal error occurred, no output PDF file produced!
> Transcript written on Rd2.log.
>
> Error in running tools::texi2pdf
>
>
> ________________________________
> De: Fernando Mayer <fernandomayer em gmail.com>
> Para: r-br em listas.c3sl.ufpr.br; Emmanuel Arnhold
> <emmanuelarnhold em yahoo.com.br>
> Enviadas: Quinta-feira, 28 de Junho de 2012 15:46
> Assunto: Re: [R-br] Erro ao criar pacote-manual-pdf
>
> Como a mensagem de aviso indica:
>
> Running 'texi2dvi' on 'Rd2.tex' failed.
> Messages:
> sh: /usr/bin/texi2dvi: not found
>
> vc nao tem instalado o texi2dvi. Instale com
>
> sudo apt-get install texinfo
>
>
> ---
> Fernando Mayer
> Universidade Federal de Santa Catarina - UFSC
> Departamento de Ecologia e Zoologia - ECZ/CCB
> URL: http://sites.google.com/site/fernandomayer
> e-mail: fernandomayer [@] gmail.com
>
>
> On Thu, Jun 28, 2012 at 3:31 PM, Emmanuel Arnhold
> <emmanuelarnhold em yahoo.com.br> wrote:
>> Não estou conseguindo criar um manual em pdf. Agradeço qualquer dica.
>> Seguem
>> os erros.
>>
>> R CMD check meupacote
>> tudo ok até:
>>
>> * checking Rd files ... WARNING
>> Error : ea1.Rd: non-ASCII input and no declared encoding
>>
>> Error : pacote-package.Rd: non-ASCII input and no declared encoding
>> .
>> .
>> .
>>
>> * checking PDF version of manual ... WARNING
>> LaTeX errors when creating PDF version.
>> This typically indicates Rd problems.
>> * checking PDF version of manual without hyperrefs or index ... ERROR
>> Re-running with no redirection of stdout/stderr.
>> Hmm ... looks like a package
>> Warning: /home/emmanuel/pacote/man/pacote-package.Rd:5-7: Some input could
>> not be re-encoded to ASCII
>> Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet,
>> :
>>   pdflatex is not available
>> Error in running tools::texi2pdf
>> You may want to clean up by 'rm -rf /tmp/RtmpRcSLFe/Rd2pdffdc8348000'
>>
>> Instalou e comprimiu, mas não gera o manual em pdf.
>> R CMD INSTALL pacote
>> OK
>>
>> R CMD build pacote
>> OK
>>
>> emmanuel em ubuntu:~$ R CMD Rd2dvi --pdf pacote
>> R CMD Rd2dvi is defunct: use Rd2pdf instead
>> emmanuel em ubuntu:~$ R CMD Rd2pdf pacote
>> Hmm ... looks like a package
>> 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.
>> Messages:
>> sh: /usr/bin/texi2dvi: not found
>> Output:
>>
>> Error in running tools::texi2pdf
>> emmanuel em ubuntu:~$ R CMD Rd2pdf --pdf pacote
>> Hmm ... looks like a package
>> 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.
>> Messages:
>> sh: /usr/bin/texi2dvi: not found
>> Output:
>>
>> Error in running tools::texi2pdf
>>
>>
>>
>> _______________________________________________
>> R-br mailing list
>> R-br em listas.c3sl.ufpr.br
>> https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
>> Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça
>> código
>> mínimo reproduzível.
>
>


Mais detalhes sobre a lista de discussão R-br