Trying to install this package in R-3.2.2, and get the following error:
> source("http://www.bioconductor.org/biocLite.R")
> biocLite("BSgenome.Hsapiens.UCSC.hg19")
BioC_mirror: http://bioconductor.org
Using Bioconductor version 3.1 (BiocInstaller 1.18.4), R version 3.2.2.
Installing package(s) ‘BSgenome.Hsapiens.UCSC.hg19’
trying URL 'http://bioconductor.org/packages/3.1/data/annotation/src/contrib/BSgenome.Hsapiens.UCSC.hg19_1.4.0.tar.gz'
Content type 'application/x-gzip' length 688190187 bytes (656.3 MB)
==================================================
downloaded 656.3 MB
* installing *source* package ‘BSgenome.Hsapiens.UCSC.hg19’ ...
** R
** inst
** preparing package for lazy loading
Creating a generic function for ‘nchar’ from package ‘base’ in package ‘S4Vectors’
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Creating a generic function for ‘nchar’ from package ‘base’ in package ‘S4Vectors’
Error : .onLoad failed in loadNamespace() for 'BSgenome.Hsapiens.UCSC.hg19', details:
call: parseURI("")
error: cannot parse URI
Error: loading failed
Execution halted
ERROR: loading failed
Thanks, I followed the suggestions above but I still get the same error. Note that I was able to install this on the same system (RHEL5) under R-3.1.1, so not sure why it's not working in R-3.2.2. Here's the sessionInfo() output:
> sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: x86_64-pc-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] BiocInstaller_1.18.4
loaded via a namespace (and not attached):
[1] tools_3.2.2
Hi - I had a similar problem when tray to load BSgenome packages. The problem was some entry in the LD_LIBRARY_PATH environment variable (Linux). I reset my LD_LIBRARY_PATH to the bare minimum and this solved the problem. Seems some package (probably) loaded the wrong version of a share library.
Hi, I had the same problem when installing the BSgenome. Could you please show us how you solve this in detail? I am not that familiar with Linux. Thanks in advance!