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

Richard M. Heiberger rmh at temple.edu
Tue Jan 7 05:51:35 CET 2014

```This looks like a PATH problem.  Most likely Miktex isn't where you
told R to find it.

FInd out where miktex is by typing pdflatex in the Start button search box.
Right click on it when it appears and then click properties.
The properties window has a Location field.
The value in the location field is what you need to put in your PATH.

The change I noticed in the past year is that pdflatex is no longer in
miktex\bin.
It is now in miktex\bin\x64

Here are some possibilities.  The 8.3 names are available from windows.
In the MSDOS CMD window, enter dir/x

C:\Program Files (x86)\MiKTeX 2.9\miktex\bin
c:\Progra~2\MikTeX~1.9\miktex\bin
c:\progra~1\MiKTeX2.9\miktex\bin\x64

Rich

On Mon, Jan 6, 2014 at 5:36 PM, Eva Prieto Castro <evapcastro at yahoo.es> wrote:
>
>
> 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