From edd @end|ng |rom deb|@n@org  Mon Jan 13 17:22:15 2020
From: edd @end|ng |rom deb|@n@org (Dirk Eddelbuettel)
Date: Mon, 13 Jan 2020 10:22:15 -0600
Subject: [Rd] as-cran issue
In-Reply-To: <28fddd$d2evua@ironport10.mayo.edu>
References: <28fddd$d2evua@ironport10.mayo.edu>
Message-ID: <24092.39223.677206.772099@rob.eddelbuettel.com>


On 13 January 2020 at 10:02, Therneau, Terry M., Ph.D. via R-devel wrote:
| Where can I find out (and replicate) what options as-cran turns on?

See the file src/library/tools/R/check.R in the R sources, and grep for
as_cran which is the internal variable controlled by the --as-cran option

[...]

| 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.

This was widely discussed on this list and should also be in the NEWS file.

The change is about what the message says: the if () tests a scalar logical,
it appears that ismat(kmat) returns more than a scalar.

There has always been an opt-in for this to error -- cf many messages by Henrik
over the years as he tried to convince us all to use it more.


Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org



[Rd] as-cran issue
Dirk Eddelbuettel