# [R] Packaging: Doubt in relation with "R CMD Rd2pdf packagename"

Duncan Murdoch murdoch.duncan at gmail.com
Tue Jan 7 21:57:34 CET 2014

```On 14-01-07 3:35 PM, Eva Prieto Castro wrote:
> Hi Rich, Hi everybody
>
> I have solved the problem!. I installed MikTeX 2.9 again, but this time I chose basic installation (the other one I had chosen complete installation). I noticed a diference if we compare with the previous situation: now R and MikTeX are installed in the same folder (ProgramFiles) - in the previous situation R was in Program Files and MikTeX was in Program Files (x86).

I would guess the change of location isn't what solved this, but rather
that the basic installation loads LaTeX packages on demand, so you

Duncan Murdoch

> Now R CMD check runs correctly and R CMD Rd2pdf runs correctly too.
>
> I am very happy with the results!.
>
> Thank you!
>
> Eva
>
>
>
>
>
> El Martes 7 de enero de 2014 18:50, Eva Prieto Castro <evapcastro at yahoo.es> escribió:
>
> Thanks Rich. I used your indications, but it was correctly in PATH variable. My path is C:\Program Files (x86)\MiKTeX 2.9\miktex\bin.
>
> I send you a print. Do you have any other idea?.
>
> Thanks again.
>
> Eva
>
>
>
>
>
>
> El Lunes 6 de enero de 2014 23:36, Eva Prieto Castro <evapcastro at yahoo.es> escribió:
>
>
>
> Hi everybody,
>
> I have created a package without documentation and now I want to create it with a pdf manual. That is the reason why I have created the .Rd files in man folder. In this way I obtain a pdf manual usind "R CMD check packagename", but it ignores the \code{\link{function.name}}... I mean the function.name does not appear as a hiperlink although I use \link in the rd file.
>
>
> I supose (I don't know if that is true) that the hiperlink and index requires other way of generating the pdf manual, but when I use "R CMD Rd2pdf packagename" I obtain the following error:
>
> Error: running 'texti2dvi' on 'Rd2.tex' failed
> LaTeX errors:
> !pdfTeX error: pdflatex.EXE <file t1-zi4r-0>: Fot t1-zi4r-0 at 540 not found -- Fatal error ocurred, no output PDF file produced!
> Error in running tools::texti2pdf()
>
> Sometimes the message error mentions inconsolata and zi4.sty. Then I install (or uninstall) inconsolata since MikTex package manager and the error turns to the other I described.
>
> I am using MikTeX 2.9 in Windows 8. I have tested in Windows 7 and the results are the same.
>
> How can I obtain the pdf manual?. The fact of solving this problem is very important for me.
>
>
> Regards.
>
> Eva
> 	[[alternative HTML version deleted]]
>
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help