Skip to content

[R-pkg-devel] Static PDF Vignette

3 messages · Charith Karunarathna, Iñaki Ucar

#
Hi,


I followed these instructions, (https://www.markvanderloo.eu/yaRb/2019/01/11/add-a-static-pdf-vignette-to-an-r-package/), to add a pdf (perfectphyloR.pdf) as the vignette of my package (perfectphyloR). However, I am getting the following Warning message and  NOTE from the win-builder:


Warning messge:


* checking files in 'vignettes' ... WARNING
Files in the 'vignettes' directory but no files in 'inst/doc':
  'perfectphyloR.pdf'


NOTE:


* checking for hidden files and directories ... NOTE
Found the following hidden files and directories:
  vignettes/.Rnw
These were most likely included in error. See section 'Package
structure' in the 'Writing R Extensions' manual.

CRAN-pack does not know about
  vignettes/.Rnw


I am having a hardship to fix those two. Could someone direct me to fix those issue?


Thank you!


Charith.
#
On Wed, 4 Dec 2019 at 22:54, Charith Karunarathna
<charith_karunarathna at sfu.ca> wrote:
The post doesn't mean ".Rnw" literally. Give it a filename instead of
just .Rnw: perfectphyloR.Rnw seems appropriate.

I?aki
1 day later
#
Hi,


I am trying to add a PDF file (perfectphyloR.pdf) as the vignette of my R package (perfectphyloR). When I check my package using win-builder, I am getting the following warning message:


* checking re-building of vignette outputs ... [2s] WARNING
Error in re-building vignettes:
  ...
Warning in system(paste(shQuote(texi2dvi), if (quiet) "--quiet" else "",  :
  running command '"D:\compiler\texmf\miktex\bin\texify.exe" --quiet --pdf "perfectphyloR.tex" --max-iterations=20 -I "D:/RCompile/recent/R-3.5.3/share/texmf/tex/latex" -I "D:/RCompile/recent/R-3.5.3/share/texmf/bibtex/bst"' had status 1
Error: running 'texi2dvi' on 'perfectphyloR.tex' failed

LaTeX errors:
!pdfTeX error: pdflatex.EXE (file ./perfectphyloR.pdf): reading image file fail
ed
 ==> Fatal error occurred, no output PDF file produced!
Execution halted


Could someone help me fix this issue?


Thank you!


Charith.