[R-pkg-devel] OFFICIAL: R-devel check error: package or NAMESPACE load failed, there is no package called broom

Georgina Anderson Georg|n@@Ander@on @end|ng |rom phe@gov@uk
Sat Sep 7 10:36:04 CEST 2019



Any help with the following update to my package PHEindicatormethods would be appreciated.

I have made a very minor change to the package to fix dependencies on the tidyr:nest() function as tidyr v 1.0.0 is due to be released with breaking changes on 9th September.
The version I am trying to upload to CRAN is 1.1.5 available here: https://github.com/PublicHealthEngland/PHEindicatormethods

When I run devtools::check_win_devel locally (Windows 10 laptop, R 3.6.1, rStudio 1.2.1335) it passes with no NOTES, ERRORS or WARNINGS (locally it also passes devtools::check_win on release and oldrelease and devtools::check_rhub)

When I submit to CRAN I have been notified that package PHEindicatormethods_1.1.5.tar.gz does not pass the incoming checks automatically, signposting failing pre-tests on Windows:

* using R Under development (unstable) (2019-09-02 r77130)

* using platform: x86_64-w64-mingw32 (64-bit)

* using session charset: ISO8859-1

This is the log file available for 7 days: https://win-builder.r-project.org/incoming_pretest/PHEindicatormethods_1.1.5_20190905_224346/Windows/00check.log

Below are two sections from the log that show the errors:

> library('PHEindicatormethods')

Error: package or namespace load failed for 'PHEindicatormethods' in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):

 there is no package called 'broom'

Execution halted

** running examples for arch 'x64' ... ERROR

Running examples in 'PHEindicatormethods-Ex.R' failed

The error occurred in:

R Under development (unstable) (2019-09-02 r77130) -- "Unsuffered Consequences"

Copyright (C) 2019 The R Foundation for Statistical Computing

Platform: x86_64-w64-mingw32/x64 (64-bit)

Error: processing vignette 'WorkedExamples_phe_sii.Rmd' failed with diagnostics:

package or namespace load failed for 'PHEindicatormethods' in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):

 there is no package called 'broom'

--- failed re-building 'WorkedExamples_phe_sii.Rmd'

SUMMARY: processing the following file failed:


Error: Vignette re-building failed.

Execution halted

I have checked the broom package and its upstream dependency on generics - I notice the tidy() function was moved from broom to generics a while back but this was before I submitted the current version (1.1.3) of my package to CRAN so not sure this can be the problem, although one of my functions does reference broom::tidy().  The evidence seems to point to changes in R-devel causing something in my package to break but without being able to reproduce the errors seen by CRAN I'm finding it difficult to pinpoint the problem.


The information contained in the EMail and any attachments is confidential and intended solely and for the attention and use of the named addressee(s). It may not be disclosed to any other person without the express authority of Public Health England, or the intended recipient, or both. If you are not the intended recipient, you must not disclose, copy, distribute or retain this message or any part of it. This footnote also confirms that this EMail has been swept for computer viruses by Symantec.Cloud, but please re-sweep any attachments before opening or saving. http://www.gov.uk/PHE
	[[alternative HTML version deleted]]

More information about the R-package-devel mailing list