[Rd] as-cran issue

Therneau, Terry M., Ph.D. therne@u @end|ng |rom m@yo@edu
Mon Jan 13 17:02:06 CET 2020

Where can I find out (and replicate) what options as-cran turns on?

The issue: the following lines generate an error in R CMD check --as-cran  for coxme.  But 
there is no error without as-cran nor is there one when I run the code in a terminal window.

ismat <- function(x)  inherits(x, "matrix") || inherits(x, "bdsmatrix") || inherits(x, 
if (ismat(kmat)  ) ....

(The second line is repeated multiple times for multiple arguments.  The ismat function is 
defined simply to save typing.)

The check log contains multiple instances of the lines below:

< Warning message:
< In if (ismat(kmat)) { :
<   the condition has length > 1 and only the first element will be used

I don't see how the error could arise, but if I know what as-cran is doing perhaps I can 
replicate it.

R Under development (unstable) (2020-01-13 r77659)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.3 LTS

Matrix products: default
BLAS:   /usr/local/src/R-devel/lib/libRblas.so
LAPACK: /usr/local/src/R-devel/lib/libRlapack.so

  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
  [3] LC_TIME=en_US.UTF-8        LC_COLLATE=C
  [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
  [9] LC_ADDRESS=C               LC_TELEPHONE=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods base

loaded via a namespace (and not attached):
[1] compiler_4.0.0 tools_4.0.0

	[[alternative HTML version deleted]]

More information about the R-devel mailing list