Hi,
One of the users of our FlowSorted.CordBloodCombined.450k package contacted me for advice about an issue during installation using either Bioconductor 3.9 and 3.10. The issue appears when trying to access the ExperimentHub and dealing with a proxy. A similar error was previously reported by Tim Triche and lead to an interesting discussion with the Bioconductor group: https://support.bioconductor.org/p/111958/
However, in this case the problem appears during the .onLoad instead of during the .onAttach. I was not able to reproduce the problem locally. Thus, I believe this is a problem that I should solve for future users.
Do you have any advice on how to solve this problem from the BiocManager::install or from the FlowSorted.CordBloodCombined.450k:::.onLoad? Your advice will be really appreciated.
Lucas
Below a fragment of the issue and potential problematic areas:
Bioconductor version 3.10 (BiocManager 1.30.4), R 3.6.0 (2019-04-26)
Installing package(s) 'FlowSorted.CordBloodCombined.450k'
trying URL 'https://bioconductor.org/packages/3.10/data/experiment/src/contrib/FlowSorted.CordBloodCombined.450k_1.1.0.tar.gz'
Content type 'application/x-gzip' length 57511 bytes (56 KB)
==================================================
downloaded 56 KB
* installing *source* package ?FlowSorted.CordBloodCombined.450k? ...
** using staged installation
** R
** data
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package ?FlowSorted.CordBloodCombined.450k?
finding HTML links ... done
FlowSorted.CordBloodCombined.450K html
FlowSorted.CordBloodCombined.450k.compTable
html
IDOLOptimizedCpGsCordBlood html
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
No internet connection using 'localHub=TRUE'
snapshotDate(): 2019-06-20
Error: package or namespace load failed for ?FlowSorted.CordBloodCombined.450k?:
.onLoad failed in loadNamespace() for 'FlowSorted.CordBloodCombined.450k', details:
call: FUN(X[[i]], ...)
error: ?FlowSorted.CordBloodCombined.450k? not found in ExperimentHub
Error: loading failed
Execution halted
ERROR: loading failed
* removing ?/usr/local/apps/R/3.6/site-library_3.6.0/FlowSorted.CordBloodCombined.450k?
* restoring previous ?/usr/local/apps/R/3.6/site-library_3.6.0/FlowSorted.CordBloodCombined.450k?
The .onLoad here calls to createHubAccessors:
FlowSorted.CordBloodCombined.450k:::.onLoad
function (libname = find.package("FlowSorted.CordBloodCombined.450k"),
pkgname = "FlowSorted.CordBloodCombined.450k")
{
fl <- system.file("extdata", "metadata.csv",
package = pkgname)
titles <- read.csv(fl, stringsAsFactors = FALSE)$Title
createHubAccessors(pkgname, titles)
}
In the meantime they were able to access the database using the following commands: