[R-pkg-devel] R CMD check not finding my vignettes
David Hugh-Jones
davidhughjones at gmail.com
Fri Apr 7 12:09:48 CEST 2017
Hi Uwe,
Indeed yes, but my built tarball has got the files in inst/doc as shown. If
I then run 'R CMD check' on that tarball, I get the error quoted. Is there
something happening that I don't understand?
Incidentally, the tarball also has files in the vignettes directory: (a)
the original .Rmd files and (b) HTML files. My original directory has all
of Rmd, HTML and PDF files in the vignettes directory, but for some reason
the PDFs don't get included when the tarball is built.
Cheers,
David
David
On 7 April 2017 at 07:15, Uwe Ligges <ligges at statistik.tu-dortmund.de>
wrote:
> I do not know devtools, but the vignette sources should be placed in
> ./vignettes and then R CMD build will put the files into the relevant
> places automatically.
>
> Best,
> Uwe Ligges
>
>
>
>
>
>
> On 07.04.2017 07:55, David Hugh-Jones wrote:
>
>> Okay, so this got tumbleweeded... so should I file a bug?
>>
>> D
>>
>> On Thu, 6 Apr 2017 at 15:37, David Hugh-Jones <davidhughjones at gmail.com>
>> wrote:
>>
>>
>>> Before building my package, I manually place both pdf and html versions
>>> of
>>> my vignettes into inst/doc. I then build the package with
>>> `devtools::check`.
>>>
>>> Listing of the resulting tarball:
>>>
>>> -rw-r--r-- 0 david staff 1692 6 Apr 15:10
>>> huxtable/inst/doc/design-principles.R
>>>
>>> -rw-r--r-- 0 david staff 6697 6 Apr 15:10
>>> huxtable/inst/doc/design-principles.Rmd
>>>
>>> -rw-r--r-- 0 david staff 899765 6 Apr 15:10
>>> huxtable/inst/doc/design-principles.html
>>>
>>> -rw-r--r-- 0 david staff 213776 6 Apr 15:10
>>> huxtable/inst/doc/design-principles.pdf
>>>
>>> -rw-r--r-- 0 david staff 3009 6 Apr 15:10
>>> huxtable/inst/doc/huxreg.R
>>>
>>> -rw-r--r-- 0 david staff 5521 6 Apr 15:10
>>> huxtable/inst/doc/huxreg.Rmd
>>>
>>> -rw-r--r-- 0 david staff 940955 6 Apr 15:10
>>> huxtable/inst/doc/huxreg.html
>>>
>>> -rw-r--r-- 0 david staff 237771 6 Apr 15:10
>>> huxtable/inst/doc/huxreg.pdf
>>>
>>> -rw-r--r-- 0 david staff 10473 6 Apr 15:11
>>> huxtable/inst/doc/huxtable.R
>>>
>>> -rw-r--r-- 0 david staff 20552 6 Apr 15:11
>>> huxtable/inst/doc/huxtable.Rmd
>>>
>>> -rw-r--r-- 0 david staff 925373 6 Apr 15:11
>>> huxtable/inst/doc/huxtable.html
>>>
>>> -rw-r--r-- 0 david staff 284978 6 Apr 15:11
>>> huxtable/inst/doc/huxtable.pdf
>>>
>>> However, R CMD check then complains:
>>>
>>> * checking package vignettes in ‘inst/doc’ ... WARNING
>>> Package vignettes without corresponding PDF/HTML:
>>> ‘design-principles.Rmd’
>>> ‘huxreg.Rmd’
>>> ‘huxtable.Rmd’
>>>
>>> What gives?
>>>
>>> Cheers,
>>> David
>>>
>>>
[[alternative HTML version deleted]]
More information about the R-package-devel
mailing list