Hi, how to you build your package? I do: mkdir -p inst/doc mkdir vignettes cp sources_vignettes/*.pdf* vignettes ## for linux add -u after cp cp sources_vignettes/*.Rnw inst/doc ## for linux add -u after cp (cd inst/doc/; for f in *.Rnw; do mv "$$f" "$${f%.Rnw}_source.txt"; done;) Rscript -e "tools::compactPDF(paths = 'vignettes', gs_quality = 'printer')" Rscript -e "devtools::build()"
Does that work for you? Alex On Wed, 3 Jul 2019 at 01:41, Charith Karunarathna < charith_karunarat...@sfu.ca> wrote: > (Reposting..) > > Hi everyone, > > I am getting following two warnings when I submit my R package > (perfectphyloR) to CRAN. > > Warning 1: * checking files in 'vignettes' ... WARNING > Files in the 'vignettes' directory but no files in 'inst/doc': > 'perfectphyloR.html', 'perfectphyloR.html.asis' > > Warning 2: * checking package vignettes in 'inst/doc' ... WARNING > dir.exists(dir) is not TRUE > Package vignette without corresponding single PDF/HTML: > 'perfectphyloR.html.asis' > > I want to make my vignette as a static html vignette (not the PDF). > Therefore, I followed this documentation, > https://cran.r-project.org/web/packages/R.rsp/vignettes/R_packages-Static_PDF_and_HTML_vignettes.pdf > > After including my html vignette (perfectphyloR.html) into the directory > 'vignette', I created a file called "perfectphyloR.html.asis" and that file > includes following lines: > > %\VignetteIndexEntry{R packages: perfectphyloR} > %\VignetteEngine{R.rsp::asis} > %\VignetteKeyword{HTML} > %\VignetteKeyword{vignette} > %\VignetteKeyword{package} > > Also, I added 'R.rsp' to the DESCRIPTION file as follows: > .... > Suggests: > knitr, > rmarkdown, > R.rsp > VignetteBuilder: R.rsp > > So, I am wondering something is wrong with my .asis file or I am doing any > other mistake. Could you help me fix this issue? > > Thank you in advance! > > Regards, > > Charith. > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-package-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel > > [[alternative HTML version deleted]] > > ______________________________________________ > R-package-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel > -- Alexandre Courtiol http://sites.google.com/site/alexandrecourtiol/home *"Science is the belief in the ignorance of experts"*, R. Feynman [[alternative HTML version deleted]] ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel