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

Rolf Turner ro||turner @end|ng |rom po@teo@net
Wed Jan 17 07:39:03 CET 2024


On Tue, 16 Jan 2024 23:53:15 +0100
Sebastian Meyer <seb.meyer using fau.de> 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



More information about the R-package-devel mailing list