Skip to content

[R-pkg-devel] Problem with Check --as-cran

2 messages · LUIS ALFONSO PEREZ MARTOS, Tomas Kalibera

#
#
The problem is with

if (class(data) != "matrix") stop("The data field should be an array or 
a data frame")

Please use inherits() instead of checking class(), see this for more details
https://developer.r-project.org/Blog/public/2019/11/09/when-you-think-class.-think-again

Best
Tomas
On 3/23/20 3:30 PM, LUIS ALFONSO PEREZ MARTOS wrote: