Re: [R-pkg-devel] Warning when the --as-cran flag is used, not otherwise.

2024-01-16 Thread David Winsemius
Speaking as a potential user of such a package, I wonder if that 
information could be put in a help page for the entire package? I've 
seen several packages that do such a "global" overview. I realize there 
might be a Suggests: entry in the DESCRIPTION file but not everyone 
knows how to find it and even those who do might first try for a help 
page if it was in the Index.


On 1/16/24 22:39, Rolf Turner wrote:

On Tue, 16 Jan 2024 23:53:15 +0100
Sebastian Meyer  wrote:


There is a note on your help page that says

These data are **not** immediately available in the `eglhmm` package.

which seems to be in line with the check warning.

OK.  Thanks.  Now that you have pointed this out, it's all too obvious.
The user is invited to install the monoCyteSim package (from a specified
github repository).  After the user has done so, then the data sets
bivarSim and ccSim are available in the usual way.

When I ran R CMD check without the --as-cran flag, there was no problem
because I had already installed the monoCyteSim package on my local
computer.  *With* that flag, R CMD check carries on as if it were
looking at the eghlmm package in the context of running on a CRAN
server.  This server would *not* have the monoCyteSim package
installed, whence it would not be able to find the data sets bivarSim
and ccCM, whence the warning.  Makes perfect sense now.

It turns out I can make the warning go away by removing the lines

\usage{
 bivarSim
 ccSim
}

They serve no useful purpose and are not required.

Thanks again.

cheers,

Rolf Turner



__
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] Warning when the --as-cran flag is used, not otherwise.

2024-01-16 Thread Rolf Turner


On Tue, 16 Jan 2024 23:53:15 +0100
Sebastian Meyer  wrote:

> There is a note on your help page that says
> 
> These data are **not** immediately available in the `eglhmm` package.
> 
> which seems to be in line with the check warning.

OK.  Thanks.  Now that you have pointed this out, it's all too obvious.
The user is invited to install the monoCyteSim package (from a specified
github repository).  After the user has done so, then the data sets
bivarSim and ccSim are available in the usual way.

When I ran R CMD check without the --as-cran flag, there was no problem
because I had already installed the monoCyteSim package on my local
computer.  *With* that flag, R CMD check carries on as if it were
looking at the eghlmm package in the context of running on a CRAN
server.  This server would *not* have the monoCyteSim package
installed, whence it would not be able to find the data sets bivarSim
and ccCM, whence the warning.  Makes perfect sense now.

It turns out I can make the warning go away by removing the lines

\usage{
bivarSim
ccSim
}

They serve no useful purpose and are not required.

Thanks again.

cheers,

Rolf Turner

-- 
Honorary Research Fellow
Department of Statistics
University of Auckland
Stats. Dep't. (secretaries) phone:
 +64-9-373-7599 ext. 89622
Home phone: +64-9-480-4619

__
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] Warning when the --as-cran flag is used, not otherwise.

2024-01-16 Thread Sebastian Meyer
There is a note on your help page that says

These data are **not** immediately available in the `eglhmm` package.

which seems to be in line with the check warning.

Best wishes,
Sebastian Meyer

Am 16. Januar 2024 23:13:22 MEZ schrieb Rolf Turner :
>
>In a package that I am updating, I have a data documentation file
>monoCyteSim.Rd.  In this file, two data sets are documented: bivarSim
>and ccSim.  The usage section is;
>
>> \usage{
>> bivarSim
>> ccSim
>> }
>
>Since the data are lazy-loaded I *don't* wrap the names of the data
>sets in "data()".
>
>I do this in another data documentation file (SydColDat.Rd) without
>problem. However when I check the package using --as-cran I get a
>warning:
>
>> * checking for code/documentation mismatches ... WARNING
>> Variables with usage in documentation object 'monoCyteSim' but not in
>> code: ‘bivarSim’ ‘ccSim’
>
>No such warning seems to arise in respect of SydColDat.Rd.
>
>Can anyone explain what is going on, and what if anything I can do
>about it?  I would be grateful for any insight.
>
>I have attached the two help files, the one that triggers the
>warning and the one that doesn't.  I have changed the extension from
>.Rd to .txt so that (I hope!) the mailer doesn't strip them away.
>
>The complete package, as it currently stands (if this is of any
>interest), is available from my web page:
>
>https://www.stat.auckland.ac.nz/~rolf/
>
>Scroll to near the bottom and click on "Eglhmm".
>
>Thanks.
>
>cheers,
>
>Rolf Turner
>

__
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel