[R-pkg-devel] Advice about non-replicable error in CRAN R CMD check
When I submitted my package (BifactorIndicesCalculator: https://github.com/ddueber/BifactorIndicesCalculator) to CRAN, the automated checks returned an error for the development release of R in Windows. The log file is (https://win-builder.r-project.org/incoming_pretest/BifactorIndicesCalculator_0.1.0_20191020_051536/Windows/00check.log), and the error message is pasted at the bottom of this e-mail. I tried to replicate this error locally, on R-hub, and winbuilder, but to no avail. The log file from winbuilder is (https://win-builder.r-project.org/OJ4O68aeF9OG/00check.log) I am not 100% sure what the error means, other than that some package (either MplusAutomation or a package it uses, or a package used by a package MplusAutomation uses) seems to be referring to a package named "scales" which does not exist. But I have no idea why I can't replicate the error, and certainly have no idea how to fix it. Any help/advice would be appreciated. Thanks! -David Dueber Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(BifactorIndicesCalculator) > > test_check("BifactorIndicesCalculator") -- 1. Error: bifactorIndicesMplus Works (@test-BifactorIndicesCalculator.R#413) there is no package called 'scales' 1: MplusAutomation::readModels at testthat/test-BifactorIndicesCalculator.R:413 2: getExportedValue(pkg, name) 3: asNamespace(ns) 4: getNamespace(ns) 5: loadNamespace(name) 6: namespaceImport(ns, loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]), from = package) 7: loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) 8: namespaceImport(ns, loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]), from = package) 9: loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) 10: withRestarts(stop(cond), retry_loadNamespace = function() NULL) 11: withOneRestart(expr, restarts[[1L]]) 12: doWithOneRestart(return(expr), restart) == testthat results === [ OK: 30 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 1 ] [[alternative HTML version deleted]] __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
Re: [R-pkg-devel] Advice about non-replicable error in CRAN R CMD check
David, On 21 October 2019 at 11:30, Dueber, David wrote: | When I submitted my package (BifactorIndicesCalculator: https://github.com/ddueber/BifactorIndicesCalculator) to CRAN, the automated checks returned an error for the development release of R in Windows. The log file is (https://win-builder.r-project.org/incoming_pretest/BifactorIndicesCalculator_0.1.0_20191020_051536/Windows/00check.log), and the error message is pasted at the bottom of this e-mail. I tried to replicate this error locally, on R-hub, and winbuilder, but to no avail. The log file from winbuilder is (https://win-builder.r-project.org/OJ4O68aeF9OG/00check.log) | | I am not 100% sure what the error means, other than that some package (either MplusAutomation or a package it uses, or a package used by a package MplusAutomation uses) seems to be referring to a package named "scales" which does not exist. But I have no idea why I can't replicate the error, and certainly have no idea how to fix it. Any help/advice would be appreciated. Thanks! | | -David Dueber | | Running the tests in 'tests/testthat.R' failed. | Complete output: | > library(testthat) | > library(BifactorIndicesCalculator) | > | > test_check("BifactorIndicesCalculator") | -- 1. Error: bifactorIndicesMplus Works (@test-BifactorIndicesCalculator.R#413) | there is no package called 'scales' ^^^ Someone depends on package 'scales', either you, or one of your dependencies. I said more about that in the past [1], but in short - if it is a dependency, you need to depend on on it via Imports:; - if it is not meant to be one then you need to condition on it via eg code of the form 'if (RequireNamespace(pkgName), quietly=TRUE))' Dirk [1] http://dirk.eddelbuettel.com/blog/2017/03/22#suggests_is_not_depends -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
Re: [R-pkg-devel] Advice about non-replicable error in CRAN R CMD check
On Mon, 21 Oct 2019 at 13:34, Dueber, David wrote: > > When I submitted my package (BifactorIndicesCalculator: > https://github.com/ddueber/BifactorIndicesCalculator) to CRAN, the automated > checks returned an error for the development release of R in Windows. The log > file is > (https://win-builder.r-project.org/incoming_pretest/BifactorIndicesCalculator_0.1.0_20191020_051536/Windows/00check.log), > and the error message is pasted at the bottom of this e-mail. I tried to > replicate this error locally, on R-hub, and winbuilder, but to no avail. The > log file from winbuilder is > (https://win-builder.r-project.org/OJ4O68aeF9OG/00check.log) > > I am not 100% sure what the error means, other than that some package (either > MplusAutomation or a package it uses, or a package used by a package > MplusAutomation uses) seems to be referring to a package named "scales" which > does not exist. But I have no idea why I can't replicate the error, and > certainly have no idea how to fix it. Any help/advice would be appreciated. > Thanks! This is probably some race condition in that particular builder. Try submitting again. Iñaki __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
Re: [R-pkg-devel] Advice about non-replicable error in CRAN R CMD check
Thanks I�aki, I will try that, and report back if it does not work. -David From: I�aki Ucar Sent: Monday, October 21, 2019 8:39 AM To: Dueber, David Cc: r-package-devel@r-project.org Subject: Re: [R-pkg-devel] Advice about non-replicable error in CRAN R CMD check On Mon, 21 Oct 2019 at 13:34, Dueber, David wrote: > > When I submitted my package (BifactorIndicesCalculator: > https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fddueber%2FBifactorIndicesCalculator&data=02%7C01%7Cdavid.dueber%40uky.edu%7Cb273417105e3441d6f9208d75623c1a4%7C2b30530b69b64457b818481cb53d42ae%7C0%7C1%7C637072583883111749&sdata=gGoqCOnHFAVId5APXHpxJWP9AFxn3o9QgLIaDjvfDDU%3D&reserved=0) > to CRAN, the automated checks returned an error for the development release > of R in Windows. The log file is > (https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwin-builder.r-project.org%2Fincoming_pretest%2FBifactorIndicesCalculator_0.1.0_20191020_051536%2FWindows%2F00check.log&data=02%7C01%7Cdavid.dueber%40uky.edu%7Cb273417105e3441d6f9208d75623c1a4%7C2b30530b69b64457b818481cb53d42ae%7C0%7C1%7C637072583883111749&sdata=AhL4ssK4LXOuOstGOtrOcaLaEHgTlNXuT7IvmD3NEpI%3D&reserved=0), > and the error message is pasted at the bottom of this e-mail. I tried to > replicate this error locally, on R-hub, and winbuilder, but to no avail. The > log file from winbuilder is > (https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwin-builder.r-project.org%2FOJ4O68aeF9OG%2F00check.log&data=02%7C01%7Cdavid.dueber%40uky.edu%7Cb273417105e3441d6f9208d75623c1a4%7C2b30530b69b64457b818481cb53d42ae%7C0%7C1%7C637072583883111749&sdata=EFBatCeSnLhRL56lWbnUg%2FM%2B%2FrBl6PafcHOMoJ4%2FkxM%3D&reserved=0) > > I am not 100% sure what the error means, other than that some package (either > MplusAutomation or a package it uses, or a package used by a package > MplusAutomation uses) seems to be referring to a package named "scales" which > does not exist. But I have no idea why I can't replicate the error, and > certainly have no idea how to fix it. Any help/advice would be appreciated. > Thanks! This is probably some race condition in that particular builder. Try submitting again. I�aki [[alternative HTML version deleted]] __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel