Re: [R-pkg-devel] R CMD check not finding my vignettes

2017-04-20 Thread David Hugh-Jones
Hi guys,

Thanks very much for all of your comments. I now have a good sense of what
the possibilities are, and I will think about what works best for my
package.

Cheers,
David


On 20 April 2017 at 14:42, Duncan Murdoch  wrote:

> On 20/04/2017 4:57 AM, Brian G. Peterson wrote:
>
>> David,
>>
>> I'd suggest creating a vignette for each of HTML and PDF, and including
>> a source file that contains the common code.  e.g. have a pdf header and
>> an html header file, and then include the 'main' Rmd as a child doc from
>> each header Rmd.  This way R CMD build could build both pdf and html
>> versions of the output.
>>
>
> That's another solution.  My suggestion would be simpler:  just pick one
> of PDF or HTML, and give the user instructions to produce the other if
> necessary, but don't produce it for them.
>
> Duncan Murdoch
>
>
>
>> Regards,
>>
>> Brian
>>
>> On 04/20/2017 03:38 AM, David Hugh-Jones wrote:
>>
>>> Hi Duncan,
>>>
>>> Thank you very much for taking the time to look at this.
>>>
>>> I tried rebuilding the tar file so as to include only the .Rmd files, not
>>> the HTML files, in 'vignettes':
>>>
>>> drwxr-xr-x  0 david  staff   0 20 Apr 09:21 huxtable/vignettes/
>>>
>>> -rw-r--r--  0 david  staff1633  6 Apr 16:26
>>> huxtable/vignettes/comparison.csv
>>>
>>> -rw-r--r--  0 david  staff6697  6 Apr 14:44
>>> huxtable/vignettes/design-principles.Rmd
>>>
>>> -rw-r--r--  0 david  staff5521  6 Apr 14:30
>>> huxtable/vignettes/huxreg.Rmd
>>>
>>> -rw-r--r--  0 david  staff   20552  6 Apr 16:19
>>> huxtable/vignettes/huxtable.Rmd
>>>
>>> -rw-r--r--  0 david  staff  22 17 Mar 00:19
>>> huxtable/vignettes/placeins-header.tex
>>>
>>>
>>> But when I run R CMD check, I still get the same warning:
>>>
>>> * checking package vignettes in ‘inst/doc’ ... WARNING
>>>
>>> Package vignettes without corresponding PDF/HTML:
>>>
>>>‘design-principles.Rmd’
>>>
>>>‘huxreg.Rmd’
>>>
>>>‘huxtable.Rmd’
>>>
>>> So, the warning does not seem to be related to the presence of HTML files
>>> in vignettes.
>>>
>>> I also tried manually removing .Rmd files from inst/doc (leaving them
>>> only
>>> in vignettes) but this still gave the same error.
>>>
>>> My goal here is that for package-specific reasons, I would like both pdf
>>> and HTML versions of my vignettes to be available (I am writing code that
>>> prints HTML and LaTeX tables and want my users to have examples of how
>>> both
>>> output formats work). This is why I build those files manually, and place
>>> them in inst/doc.
>>>
>>> Side comment: at the moment, I feel as if I am running through the
>>> combinatorics of including and excluding files from vignettes and
>>> inst/doc,
>>> without much insight into what I am doing. Would it be fair to say that
>>> the
>>> current system is not very easy to comprehend?
>>>
>>> Cheers,
>>>
>>> David
>>>
>>> On 19 April 2017 at 21:24, Duncan Murdoch 
>>> wrote:
>>>
>>> On 19/04/2017 1:00 PM, David Hugh-Jones wrote:

 Hi Uwe,
>
> I'm not sure if you ever got my off-list message with my tarball or
> subsequent messages. I can't send a tarball on-list - it gets rejected
> as
> too large - but here is a dropbox link. If you could confirm receipt,
> that
> would be extremely helpful!
>
> https://www.dropbox.com/s/179jrm19kx9o7dz/huxtable_0.2.0.tar.gz?dl=0
>
>
> Not sure if Uwe has had a chance to look, but I just ran R CMD check on
 your tarball using the latest version of R-devel.  It reported the
 following problems:

 * checking CRAN incoming feasibility ... NOTE
 Maintainer: ‘David Hugh-Jones ’

 Found the following (possibly) invalid URLs:
   URL: http://cran.rstudio.com/web/packages/huxtable/index.html
 From: README.md
 CRAN URL not in canonical form
   Canonical CRAN.R-project.org URLs use https.

 The URL for your package should be in the form

 https://CRAN.R-project.org/package=huxtable

 * checking top-level files ... NOTE
 Non-standard file/directory found at top level:
   ‘multirow.rds’

 I'm not sure where that file belongs, but not there.

 * checking files in ‘vignettes’ ... WARNING
 Files in the 'vignettes' directory newer than all files in 'inst/doc':
   ‘huxreg.html’, ‘huxtable.html’

 Those files shouldn't be in the vignettes directory, they are products
 of
 building the vignettes.  Only the source should normally be in the
 vignettes directory.

 * checking package vignettes in ‘inst/doc’ ... WARNING
 Package vignettes without corresponding PDF/HTML:
‘design-principles.Rmd’
‘huxreg.Rmd’
‘huxtable.Rmd’

 I think this is the warning you were asking about.  If I look at just
 the
 first of those files, I see that design-principles.Rmd exists in
 vignettes
 and is set to produce PDF output (only the first output entry in the
 YAML
 counts)

Re: [R-pkg-devel] R CMD check not finding my vignettes

2017-04-20 Thread Duncan Murdoch

On 20/04/2017 4:57 AM, Brian G. Peterson wrote:

David,

I'd suggest creating a vignette for each of HTML and PDF, and including
a source file that contains the common code.  e.g. have a pdf header and
an html header file, and then include the 'main' Rmd as a child doc from
each header Rmd.  This way R CMD build could build both pdf and html
versions of the output.


That's another solution.  My suggestion would be simpler:  just pick one 
of PDF or HTML, and give the user instructions to produce the other if 
necessary, but don't produce it for them.


Duncan Murdoch



Regards,

Brian

On 04/20/2017 03:38 AM, David Hugh-Jones wrote:

Hi Duncan,

Thank you very much for taking the time to look at this.

I tried rebuilding the tar file so as to include only the .Rmd files, not
the HTML files, in 'vignettes':

drwxr-xr-x  0 david  staff   0 20 Apr 09:21 huxtable/vignettes/

-rw-r--r--  0 david  staff1633  6 Apr 16:26
huxtable/vignettes/comparison.csv

-rw-r--r--  0 david  staff6697  6 Apr 14:44
huxtable/vignettes/design-principles.Rmd

-rw-r--r--  0 david  staff5521  6 Apr 14:30
huxtable/vignettes/huxreg.Rmd

-rw-r--r--  0 david  staff   20552  6 Apr 16:19
huxtable/vignettes/huxtable.Rmd

-rw-r--r--  0 david  staff  22 17 Mar 00:19
huxtable/vignettes/placeins-header.tex


But when I run R CMD check, I still get the same warning:

* checking package vignettes in ‘inst/doc’ ... WARNING

Package vignettes without corresponding PDF/HTML:

   ‘design-principles.Rmd’

   ‘huxreg.Rmd’

   ‘huxtable.Rmd’

So, the warning does not seem to be related to the presence of HTML files
in vignettes.

I also tried manually removing .Rmd files from inst/doc (leaving them only
in vignettes) but this still gave the same error.

My goal here is that for package-specific reasons, I would like both pdf
and HTML versions of my vignettes to be available (I am writing code that
prints HTML and LaTeX tables and want my users to have examples of how both
output formats work). This is why I build those files manually, and place
them in inst/doc.

Side comment: at the moment, I feel as if I am running through the
combinatorics of including and excluding files from vignettes and inst/doc,
without much insight into what I am doing. Would it be fair to say that the
current system is not very easy to comprehend?

Cheers,

David

On 19 April 2017 at 21:24, Duncan Murdoch  wrote:


On 19/04/2017 1:00 PM, David Hugh-Jones wrote:


Hi Uwe,

I'm not sure if you ever got my off-list message with my tarball or
subsequent messages. I can't send a tarball on-list - it gets rejected as
too large - but here is a dropbox link. If you could confirm receipt, that
would be extremely helpful!

https://www.dropbox.com/s/179jrm19kx9o7dz/huxtable_0.2.0.tar.gz?dl=0



Not sure if Uwe has had a chance to look, but I just ran R CMD check on
your tarball using the latest version of R-devel.  It reported the
following problems:

* checking CRAN incoming feasibility ... NOTE
Maintainer: ‘David Hugh-Jones ’

Found the following (possibly) invalid URLs:
  URL: http://cran.rstudio.com/web/packages/huxtable/index.html
From: README.md
CRAN URL not in canonical form
  Canonical CRAN.R-project.org URLs use https.

The URL for your package should be in the form

https://CRAN.R-project.org/package=huxtable

* checking top-level files ... NOTE
Non-standard file/directory found at top level:
  ‘multirow.rds’

I'm not sure where that file belongs, but not there.

* checking files in ‘vignettes’ ... WARNING
Files in the 'vignettes' directory newer than all files in 'inst/doc':
  ‘huxreg.html’, ‘huxtable.html’

Those files shouldn't be in the vignettes directory, they are products of
building the vignettes.  Only the source should normally be in the
vignettes directory.

* checking package vignettes in ‘inst/doc’ ... WARNING
Package vignettes without corresponding PDF/HTML:
   ‘design-principles.Rmd’
   ‘huxreg.Rmd’
   ‘huxtable.Rmd’

I think this is the warning you were asking about.  If I look at just the
first of those files, I see that design-principles.Rmd exists in vignettes
and is set to produce PDF output (only the first output entry in the YAML
counts).  You also have a .html file in vignettes; it shouldn't be there.
In inst/doc, you have source, .html and .pdf versions of that file.

The warning isn't very helpful, but I think it is triggered by the fact
that you've got the .html file in your vignettes directory.  If I remove
everything but the source from that directory, and everything from the
inst/doc directory, then all the vignette warnings go away.

(I haven't traced through the code, but I think the warning may be
literally correct.  Since you had .html files that looked like vignette
outputs but weren't, you have vignettes without *corresponding* HTML. It
would have been nicer if it suggested how to fix this, but that vignette
code is quite tricky, because any file could be source, and any html, tex
or pdf file could be output.  At 

Re: [R-pkg-devel] R CMD check not finding my vignettes

2017-04-20 Thread Duncan Murdoch

On 20/04/2017 4:38 AM, David Hugh-Jones wrote:


Hi Duncan,

Thank you very much for taking the time to look at this.

I tried rebuilding the tar file so as to include only the .Rmd files,
not the HTML files, in 'vignettes':

drwxr-xr-x  0 david  staff   0 20 Apr 09:21 huxtable/vignettes/

-rw-r--r--  0 david  staff1633  6 Apr 16:26
huxtable/vignettes/comparison.csv

-rw-r--r--  0 david  staff6697  6 Apr 14:44
huxtable/vignettes/design-principles.Rmd

-rw-r--r--  0 david  staff5521  6 Apr 14:30
huxtable/vignettes/huxreg.Rmd

-rw-r--r--  0 david  staff   20552  6 Apr 16:19
huxtable/vignettes/huxtable.Rmd

-rw-r--r--  0 david  staff  22 17 Mar 00:19
huxtable/vignettes/placeins-header.tex


But when I run R CMD check, I still get the same warning:

* checking package vignettes in ‘inst/doc’ ... WARNING

Package vignettes without corresponding PDF/HTML:

   ‘design-principles.Rmd’

   ‘huxreg.Rmd’

   ‘huxtable.Rmd’

So, the warning does not seem to be related to the presence of HTML
files in vignettes.

I also tried manually removing .Rmd files from inst/doc (leaving them
only in vignettes) but this still gave the same error.

My goal here is that for package-specific reasons, I would like both pdf
and HTML versions of my vignettes to be available (I am writing code
that prints HTML and LaTeX tables and want my users to have examples of
how both output formats work). This is why I build those files manually,
and place them in inst/doc.


I suspect this will cause troubles if you give them the same base names 
as the vignettes.  You can rename them in inst/doc (e.g. to 
HTMLdesign-principles.html) and they'll be included as non-vignette 
files, but the current setup only allows for one kind of output file. 
This is unlikely to change soon, because it affects lots of assumptions 
in the code.



Side comment: at the moment, I feel as if I am running through the
combinatorics of including and excluding files from vignettes and
inst/doc, without much insight into what I am doing. Would it be fair to
say that the current system is not very easy to comprehend?


No, though I think it's fair to say it's not very flexible.  The basic 
rules are pretty easy:


- Don't put vignettes (source or output) in inst/doc/.  R CMD build 
should do that for you.

- Don't put vignette outputs in vignettes/, just put the source there.

There are ways to bend the rules that some people use (e.g. if running R 
CMD build takes too long, some people find tricky ways to copy vignette 
outputs without building them), but those are likely pretty fragile.  As 
you appear to have found.


Duncan Murdoch

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] R CMD check not finding my vignettes

2017-04-20 Thread Brian G. Peterson

David,

I'd suggest creating a vignette for each of HTML and PDF, and including 
a source file that contains the common code.  e.g. have a pdf header and 
an html header file, and then include the 'main' Rmd as a child doc from 
each header Rmd.  This way R CMD build could build both pdf and html 
versions of the output.


Regards,

Brian

On 04/20/2017 03:38 AM, David Hugh-Jones wrote:

Hi Duncan,

Thank you very much for taking the time to look at this.

I tried rebuilding the tar file so as to include only the .Rmd files, not
the HTML files, in 'vignettes':

drwxr-xr-x  0 david  staff   0 20 Apr 09:21 huxtable/vignettes/

-rw-r--r--  0 david  staff1633  6 Apr 16:26
huxtable/vignettes/comparison.csv

-rw-r--r--  0 david  staff6697  6 Apr 14:44
huxtable/vignettes/design-principles.Rmd

-rw-r--r--  0 david  staff5521  6 Apr 14:30
huxtable/vignettes/huxreg.Rmd

-rw-r--r--  0 david  staff   20552  6 Apr 16:19
huxtable/vignettes/huxtable.Rmd

-rw-r--r--  0 david  staff  22 17 Mar 00:19
huxtable/vignettes/placeins-header.tex


But when I run R CMD check, I still get the same warning:

* checking package vignettes in ‘inst/doc’ ... WARNING

Package vignettes without corresponding PDF/HTML:

   ‘design-principles.Rmd’

   ‘huxreg.Rmd’

   ‘huxtable.Rmd’

So, the warning does not seem to be related to the presence of HTML files
in vignettes.

I also tried manually removing .Rmd files from inst/doc (leaving them only
in vignettes) but this still gave the same error.

My goal here is that for package-specific reasons, I would like both pdf
and HTML versions of my vignettes to be available (I am writing code that
prints HTML and LaTeX tables and want my users to have examples of how both
output formats work). This is why I build those files manually, and place
them in inst/doc.

Side comment: at the moment, I feel as if I am running through the
combinatorics of including and excluding files from vignettes and inst/doc,
without much insight into what I am doing. Would it be fair to say that the
current system is not very easy to comprehend?

Cheers,

David

On 19 April 2017 at 21:24, Duncan Murdoch  wrote:


On 19/04/2017 1:00 PM, David Hugh-Jones wrote:


Hi Uwe,

I'm not sure if you ever got my off-list message with my tarball or
subsequent messages. I can't send a tarball on-list - it gets rejected as
too large - but here is a dropbox link. If you could confirm receipt, that
would be extremely helpful!

https://www.dropbox.com/s/179jrm19kx9o7dz/huxtable_0.2.0.tar.gz?dl=0



Not sure if Uwe has had a chance to look, but I just ran R CMD check on
your tarball using the latest version of R-devel.  It reported the
following problems:

* checking CRAN incoming feasibility ... NOTE
Maintainer: ‘David Hugh-Jones ’

Found the following (possibly) invalid URLs:
  URL: http://cran.rstudio.com/web/packages/huxtable/index.html
From: README.md
CRAN URL not in canonical form
  Canonical CRAN.R-project.org URLs use https.

The URL for your package should be in the form

https://CRAN.R-project.org/package=huxtable

* checking top-level files ... NOTE
Non-standard file/directory found at top level:
  ‘multirow.rds’

I'm not sure where that file belongs, but not there.

* checking files in ‘vignettes’ ... WARNING
Files in the 'vignettes' directory newer than all files in 'inst/doc':
  ‘huxreg.html’, ‘huxtable.html’

Those files shouldn't be in the vignettes directory, they are products of
building the vignettes.  Only the source should normally be in the
vignettes directory.

* checking package vignettes in ‘inst/doc’ ... WARNING
Package vignettes without corresponding PDF/HTML:
   ‘design-principles.Rmd’
   ‘huxreg.Rmd’
   ‘huxtable.Rmd’

I think this is the warning you were asking about.  If I look at just the
first of those files, I see that design-principles.Rmd exists in vignettes
and is set to produce PDF output (only the first output entry in the YAML
counts).  You also have a .html file in vignettes; it shouldn't be there.
In inst/doc, you have source, .html and .pdf versions of that file.

The warning isn't very helpful, but I think it is triggered by the fact
that you've got the .html file in your vignettes directory.  If I remove
everything but the source from that directory, and everything from the
inst/doc directory, then all the vignette warnings go away.

(I haven't traced through the code, but I think the warning may be
literally correct.  Since you had .html files that looked like vignette
outputs but weren't, you have vignettes without *corresponding* HTML. It
would have been nicer if it suggested how to fix this, but that vignette
code is quite tricky, because any file could be source, and any html, tex
or pdf file could be output.  At some point I may try to clean it up a bit
and then maybe the error messages will be less obscure.)

Duncan Murdoch



[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list

Re: [R-pkg-devel] R CMD check not finding my vignettes

2017-04-20 Thread David Hugh-Jones
Hi Duncan,

Thank you very much for taking the time to look at this.

I tried rebuilding the tar file so as to include only the .Rmd files, not
the HTML files, in 'vignettes':

drwxr-xr-x  0 david  staff   0 20 Apr 09:21 huxtable/vignettes/

-rw-r--r--  0 david  staff1633  6 Apr 16:26
huxtable/vignettes/comparison.csv

-rw-r--r--  0 david  staff6697  6 Apr 14:44
huxtable/vignettes/design-principles.Rmd

-rw-r--r--  0 david  staff5521  6 Apr 14:30
huxtable/vignettes/huxreg.Rmd

-rw-r--r--  0 david  staff   20552  6 Apr 16:19
huxtable/vignettes/huxtable.Rmd

-rw-r--r--  0 david  staff  22 17 Mar 00:19
huxtable/vignettes/placeins-header.tex


But when I run R CMD check, I still get the same warning:

* checking package vignettes in ‘inst/doc’ ... WARNING

Package vignettes without corresponding PDF/HTML:

   ‘design-principles.Rmd’

   ‘huxreg.Rmd’

   ‘huxtable.Rmd’

So, the warning does not seem to be related to the presence of HTML files
in vignettes.

I also tried manually removing .Rmd files from inst/doc (leaving them only
in vignettes) but this still gave the same error.

My goal here is that for package-specific reasons, I would like both pdf
and HTML versions of my vignettes to be available (I am writing code that
prints HTML and LaTeX tables and want my users to have examples of how both
output formats work). This is why I build those files manually, and place
them in inst/doc.

Side comment: at the moment, I feel as if I am running through the
combinatorics of including and excluding files from vignettes and inst/doc,
without much insight into what I am doing. Would it be fair to say that the
current system is not very easy to comprehend?

Cheers,

David

On 19 April 2017 at 21:24, Duncan Murdoch  wrote:

> On 19/04/2017 1:00 PM, David Hugh-Jones wrote:
>
>> Hi Uwe,
>>
>> I'm not sure if you ever got my off-list message with my tarball or
>> subsequent messages. I can't send a tarball on-list - it gets rejected as
>> too large - but here is a dropbox link. If you could confirm receipt, that
>> would be extremely helpful!
>>
>> https://www.dropbox.com/s/179jrm19kx9o7dz/huxtable_0.2.0.tar.gz?dl=0
>>
>>
> Not sure if Uwe has had a chance to look, but I just ran R CMD check on
> your tarball using the latest version of R-devel.  It reported the
> following problems:
>
> * checking CRAN incoming feasibility ... NOTE
> Maintainer: ‘David Hugh-Jones ’
>
> Found the following (possibly) invalid URLs:
>   URL: http://cran.rstudio.com/web/packages/huxtable/index.html
> From: README.md
> CRAN URL not in canonical form
>   Canonical CRAN.R-project.org URLs use https.
>
> The URL for your package should be in the form
>
> https://CRAN.R-project.org/package=huxtable
>
> * checking top-level files ... NOTE
> Non-standard file/directory found at top level:
>   ‘multirow.rds’
>
> I'm not sure where that file belongs, but not there.
>
> * checking files in ‘vignettes’ ... WARNING
> Files in the 'vignettes' directory newer than all files in 'inst/doc':
>   ‘huxreg.html’, ‘huxtable.html’
>
> Those files shouldn't be in the vignettes directory, they are products of
> building the vignettes.  Only the source should normally be in the
> vignettes directory.
>
> * checking package vignettes in ‘inst/doc’ ... WARNING
> Package vignettes without corresponding PDF/HTML:
>‘design-principles.Rmd’
>‘huxreg.Rmd’
>‘huxtable.Rmd’
>
> I think this is the warning you were asking about.  If I look at just the
> first of those files, I see that design-principles.Rmd exists in vignettes
> and is set to produce PDF output (only the first output entry in the YAML
> counts).  You also have a .html file in vignettes; it shouldn't be there.
> In inst/doc, you have source, .html and .pdf versions of that file.
>
> The warning isn't very helpful, but I think it is triggered by the fact
> that you've got the .html file in your vignettes directory.  If I remove
> everything but the source from that directory, and everything from the
> inst/doc directory, then all the vignette warnings go away.
>
> (I haven't traced through the code, but I think the warning may be
> literally correct.  Since you had .html files that looked like vignette
> outputs but weren't, you have vignettes without *corresponding* HTML. It
> would have been nicer if it suggested how to fix this, but that vignette
> code is quite tricky, because any file could be source, and any html, tex
> or pdf file could be output.  At some point I may try to clean it up a bit
> and then maybe the error messages will be less obscure.)
>
> Duncan Murdoch
>

[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] R CMD check not finding my vignettes

2017-04-19 Thread Duncan Murdoch

On 19/04/2017 1:00 PM, David Hugh-Jones wrote:

Hi Uwe,

I'm not sure if you ever got my off-list message with my tarball or
subsequent messages. I can't send a tarball on-list - it gets rejected as
too large - but here is a dropbox link. If you could confirm receipt, that
would be extremely helpful!

https://www.dropbox.com/s/179jrm19kx9o7dz/huxtable_0.2.0.tar.gz?dl=0



Not sure if Uwe has had a chance to look, but I just ran R CMD check on 
your tarball using the latest version of R-devel.  It reported the 
following problems:


* checking CRAN incoming feasibility ... NOTE
Maintainer: ‘David Hugh-Jones ’

Found the following (possibly) invalid URLs:
  URL: http://cran.rstudio.com/web/packages/huxtable/index.html
From: README.md
CRAN URL not in canonical form
  Canonical CRAN.R-project.org URLs use https.

The URL for your package should be in the form

https://CRAN.R-project.org/package=huxtable

* checking top-level files ... NOTE
Non-standard file/directory found at top level:
  ‘multirow.rds’

I'm not sure where that file belongs, but not there.

* checking files in ‘vignettes’ ... WARNING
Files in the 'vignettes' directory newer than all files in 'inst/doc':
  ‘huxreg.html’, ‘huxtable.html’

Those files shouldn't be in the vignettes directory, they are products 
of building the vignettes.  Only the source should normally be in the 
vignettes directory.


* checking package vignettes in ‘inst/doc’ ... WARNING
Package vignettes without corresponding PDF/HTML:
   ‘design-principles.Rmd’
   ‘huxreg.Rmd’
   ‘huxtable.Rmd’

I think this is the warning you were asking about.  If I look at just 
the first of those files, I see that design-principles.Rmd exists in 
vignettes and is set to produce PDF output (only the first output entry 
in the YAML counts).  You also have a .html file in vignettes; it 
shouldn't be there.  In inst/doc, you have source, .html and .pdf 
versions of that file.


The warning isn't very helpful, but I think it is triggered by the fact 
that you've got the .html file in your vignettes directory.  If I remove 
everything but the source from that directory, and everything from the 
inst/doc directory, then all the vignette warnings go away.


(I haven't traced through the code, but I think the warning may be 
literally correct.  Since you had .html files that looked like vignette 
outputs but weren't, you have vignettes without *corresponding* HTML. 
It would have been nicer if it suggested how to fix this, but that 
vignette code is quite tricky, because any file could be source, and any 
html, tex or pdf file could be output.  At some point I may try to clean 
it up a bit and then maybe the error messages will be less obscure.)


Duncan Murdoch

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] R CMD check not finding my vignettes

2017-04-19 Thread David Hugh-Jones
Hi Uwe,

I'm not sure if you ever got my off-list message with my tarball or
subsequent messages. I can't send a tarball on-list - it gets rejected as
too large - but here is a dropbox link. If you could confirm receipt, that
would be extremely helpful!

https://www.dropbox.com/s/179jrm19kx9o7dz/huxtable_0.2.0.tar.gz?dl=0

Cheers,
David Hugh-Jones


On 7 April 2017 at 11:20, Uwe Ligges 
wrote:

> Can you send the tarball please, I can take a look,
>
>> Uwe
>
>>
>>

[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] R CMD check not finding my vignettes

2017-04-10 Thread David Hugh-Jones
Hi Berry,

Good call, and I would have been very embarrassed if so, but no. Actually,
if they had been, I guess they would not have appeared in the tarball.

Cheers,
David

On 10 April 2017 at 14:57, Berry Boessenkool 
wrote:

>
> The "missing" files or their directory are not by accident listed in
> Rbuildignore, right?
>
>
>
> 
> From: R-package-devel  on behalf
> of Uwe Ligges 
> Sent: Friday, April 7, 2017 12:20
> To: David Hugh-Jones
> Cc: r-package-devel@r-project.org
> Subject: Re: [R-pkg-devel] R CMD check not finding my vignettes
>
> Can you send the tarball please, I can take a look,
> Uwe
>
>
> On 07.04.2017 12:09, David Hugh-Jones wrote:
> > 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  > <mailto:lig...@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
> > mailto:davidhughjo...@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  staff1692  6 Apr 15:10
> > huxtable/inst/doc/design-principles.R
> >
> > -rw-r--r--  0 david  staff6697  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  staff3009  6 Apr 15:10
> > huxtable/inst/doc/huxreg.R
> >
> > -rw-r--r--  0 david  staff5521  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
> >
> >
>
> __
> 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
>

[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] R CMD check not finding my vignettes

2017-04-10 Thread Berry Boessenkool

The "missing" files or their directory are not by accident listed in 
Rbuildignore, right?




From: R-package-devel  on behalf of Uwe 
Ligges 
Sent: Friday, April 7, 2017 12:20
To: David Hugh-Jones
Cc: r-package-devel@r-project.org
Subject: Re: [R-pkg-devel] R CMD check not finding my vignettes

Can you send the tarball please, I can take a look,
Uwe


On 07.04.2017 12:09, David Hugh-Jones wrote:
> 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  <mailto:lig...@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
> mailto:davidhughjo...@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  staff1692  6 Apr 15:10
> huxtable/inst/doc/design-principles.R
>
> -rw-r--r--  0 david  staff6697  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  staff3009  6 Apr 15:10
> huxtable/inst/doc/huxreg.R
>
> -rw-r--r--  0 david  staff5521  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
>
>

__
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

Re: [R-pkg-devel] R CMD check not finding my vignettes

2017-04-07 Thread Uwe Ligges

Can you send the tarball please, I can take a look,
Uwe


On 07.04.2017 12:09, David Hugh-Jones wrote:

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 mailto:lig...@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
mailto:davidhughjo...@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  staff1692  6 Apr 15:10
huxtable/inst/doc/design-principles.R

-rw-r--r--  0 david  staff6697  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  staff3009  6 Apr 15:10
huxtable/inst/doc/huxreg.R

-rw-r--r--  0 david  staff5521  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




__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] R CMD check not finding my vignettes

2017-04-07 Thread David Hugh-Jones
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 
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 
>> 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  staff1692  6 Apr 15:10
>>> huxtable/inst/doc/design-principles.R
>>>
>>> -rw-r--r--  0 david  staff6697  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  staff3009  6 Apr 15:10
>>> huxtable/inst/doc/huxreg.R
>>>
>>> -rw-r--r--  0 david  staff5521  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]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] R CMD check not finding my vignettes

2017-04-06 Thread Uwe Ligges
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 
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  staff1692  6 Apr 15:10
huxtable/inst/doc/design-principles.R

-rw-r--r--  0 david  staff6697  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  staff3009  6 Apr 15:10 huxtable/inst/doc/huxreg.R

-rw-r--r--  0 david  staff5521  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



__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] R CMD check not finding my vignettes

2017-04-06 Thread David Hugh-Jones
 Okay, so this got tumbleweeded... so should I file a bug?

D

On Thu, 6 Apr 2017 at 15:37, David Hugh-Jones 
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  staff1692  6 Apr 15:10
> huxtable/inst/doc/design-principles.R
>
> -rw-r--r--  0 david  staff6697  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  staff3009  6 Apr 15:10 huxtable/inst/doc/huxreg.R
>
> -rw-r--r--  0 david  staff5521  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
>
-- 
Sent from Gmail Mobile

[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel