This is an error I'm getting when running BiocCheck() on some core-maintained packages (e.g. Biobase, BiocFileCache, BiocGenerics, graph, RBGL, and others):
> BiocCheck("BiocGenerics_0.46.0.tar.gz")
─ BiocCheckVersion: 1.36.1
─ BiocVersion: 3.17
─ Package: BiocGenerics
─ PackageVersion: 0.46.0
─ sourceDir: /tmp/Rtmp03tT9t/file1f71791cb83134/BiocGenerics
─ installDir: /tmp/Rtmp03tT9t/file1f71794d89f2cc
─ BiocCheckDir: /home/biocbuild/bbs-3.17-bioc/meat/BiocGenerics.BiocCheck
─ platform: unix
─ isTarBall: TRUE
* Installing package...
* Checking for deprecated package usage...
bfcdownload() will overwrite exisiting files, continue? (yes/no): no
bfcdownload() will overwrite exisiting files, continue? (yes/no): no
* Checking for remote package usage...
* Checking for 'LazyData: true' usage...
* Checking version number...
* Checking for version number mismatch...
* Checking version number validity...
Package version 0.46.0; pre-release
* Checking R version dependency...
* NOTE: Update R version dependency from 4.0.0 to 4.3.0.
* Checking package size...
* Checking individual file sizes...
* Checking biocViews...
* Checking that biocViews are present...
* Checking package type based on biocViews...
Software
* Checking for non-trivial biocViews...
* Checking that biocViews come from the same category...
* Checking biocViews validity...
* Checking for recommended biocViews...
* Checking build system compatibility...
* Checking for blank lines in DESCRIPTION...
* Checking if DESCRIPTION is well formatted...
* Checking for proper Description: field...
* WARNING: Description field in the DESCRIPTION file is too concise
* Checking for whitespace in DESCRIPTION field names...
* Checking that Package field matches directory/tarball name...
* Checking for Version field...
* Checking for valid maintainer...
* ERROR: Remove Maintainer field. Use Authors@R [cre] designation.
* Checking License: for restrictive use...
* Checking for pinned package versions...
* Checking DESCRIPTION/NAMESPACE consistency...
* Checking .Rbuildignore...
* Checking for stray BiocCheck output folders...
* Checking vignette directory...
* ERROR: No 'vignettes' directory.
* Checking package installation calls in R code...
* Checking for library/require of BiocGenerics...
* WARNING: Avoid the use of 'library' or 'require' in R code
* Checking coding practice...
* NOTE: Avoid sapply(); use vapply()
* NOTE: Avoid 'cat' and 'print' outside of 'show' methods
* NOTE: Avoid using '=' for assignment and use '<-' instead
* Checking parsed R code in R directory, examples, vignettes...
Found @ in man/path.Rd
Found @ in man/updateObject.Rd
* NOTE: Use accessors; don't access S4 class slots via '@' in
examples/vignettes.
* NOTE: Avoid '<<-' if possible (found 1 times)
* Checking function lengths...
* NOTE: The recommended function length is 50 lines or less. There
are 3 functions greater than 50 lines.
* Checking man page documentation...
* WARNING: Empty or missing \value sections found in man pages.
Error in unloadNamespace(pkg_ns) :
namespace ‘BiocGenerics’ is imported by ‘graph’, ‘Biobase’ so cannot be unloaded
As mentioned in #193, I'm running into these issues in the context of my early exploratory experiment on the feasibility of running BiocCheck() as part of the daily builds. I guess the reason we never saw this error on the SPB is because new contributions don't have rev deps (they're leaves in the dependency tree).
The easy workaround is to wrap the calls to unloadNamespace() in a try() statement. Note that in the context of automated checks it doesn't matter whether BiocCheck() actually manages to unload the namespace of the package or not, because BiocCheck() will be called in its own separate R process for each package.
This is an error I'm getting when running
BiocCheck()
on some core-maintained packages (e.g. Biobase, BiocFileCache, BiocGenerics, graph, RBGL, and others):As mentioned in #193, I'm running into these issues in the context of my early exploratory experiment on the feasibility of running
BiocCheck()
as part of the daily builds. I guess the reason we never saw this error on the SPB is because new contributions don't have rev deps (they're leaves in the dependency tree).The easy workaround is to wrap the calls to
unloadNamespace()
in atry()
statement. Note that in the context of automated checks it doesn't matter whetherBiocCheck()
actually manages to unload the namespace of the package or not, becauseBiocCheck()
will be called in its own separate R process for each package.Thanks, H.
sessionInfo():