[R-pkg-devel] Advice about non-replicable error in CRAN R CMD check

Dueber, David d@v|d@dueber @end|ng |rom uky@edu
Mon Oct 21 13:30:49 CEST 2019


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



More information about the R-package-devel mailing list