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:

El 23 mar 2020, a las 15:05, LUIS ALFONSO PEREZ MARTOS <lapm0...@gmail.com> 
escribió:

Good morning, everyone,

I am developing an R-package and when I check package I get this right. 
Attached image.

<Captura de pantalla 2020-03-23 a las 15.00.58.png>

But when I upload the package to cran they tell me the next error and I don't 
know how to fix it.

https://win-builder.r-project.org/incoming_pretest/Clustering_1.0.0_20200322_181919/Windows/00check.log
 
<https://win-builder.r-project.org/incoming_pretest/Clustering_1.0.0_20200322_181919/Windows/00check.log>

Best regards
______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to