El 23 mar 2020, a las 15:05, LUIS ALFONSO PEREZ MARTOS <lapm0001 at 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-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:
El 23 mar 2020, a las 15:05, LUIS ALFONSO PEREZ MARTOS <lapm0001 at 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 at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel