I tried to install IlluminaHumanMethylation450k.db using biocLite but keep having some error messages. I have been able to install and use it in the past but I had to reinstall R in the meantime. I have checked that all dependancies are installed (methods, AnnotationDbi, org.Hs.eg.db).
> source("http://bioconductor.org/biocLite.R")
Bioconductor version 3.0 (BiocInstaller 1.16.0), ?biocLite for help
> biocLite("IlluminaHumanMethylation450k.db")
BioC_mirror: http://bioconductor.org
Using Bioconductor version 3.0 (BiocInstaller 1.16.0), R version 3.1.1.
Installing package(s) 'IlluminaHumanMethylation450k.db'
trying URL 'http://bioconductor.org/packages/3.0/data/annotation/src/contrib/IlluminaHumanMethylation450k.db_2.0.7.tar.gz'
Content type 'application/x-gzip' length 63268195 bytes (60.3 Mb)
opened URL
=================================================
downloaded 60.3 Mb
* installing *source* package ‘IlluminaHumanMethylation450k.db’ ...
** R
** inst
** preparing package for lazy loading
Error in get(name, envir = asNamespace(pkg), inherits = FALSE) :
object 'createSimpleBimap' not found
Error : unable to load R code in package ‘IlluminaHumanMethylation450k.db’
ERROR: lazy loading failed for package ‘IlluminaHumanMethylation450k.db’
* removing ‘/home/benhur/R/x86_64-pc-linux-gnu-library/3.1/IlluminaHumanMethylation450k.db’
The downloaded source packages are in
‘/tmp/RtmpSVWOdr/downloaded_packages’
Warning message:
In install.packages(pkgs = pkgs, lib = lib, repos = repos, ...) :
installation of package ‘IlluminaHumanMethylation450k.db’ had non-zero exit status
> sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-pc-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=C LC_COLLATE=C LC_MONETARY=C
[6] LC_MESSAGES=C LC_PAPER=C LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=C LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] BiocInstaller_1.16.0
loaded via a namespace (and not attached):
[1] tools_3.1.1
Also note that you should really be using the FDb.InfiniumMethylation.hg19 package instead. Howeva:
mv /data/tmp/Rtmp4DWP9d/downloaded_packages/IlluminaHumanMethylation450k.db_2.0.7.tar.gz .
tar xvfz IlluminaHumanMethylation450k.db_2.0.7.tar.gz
<snip>
cd IlluminaHumanMethylation450k.db/R
sed -i 's/AnnotationForge:::createSimpleBimap/AnnotationDbi:::createSimpleBimap/g' zzz.R
cd ../../
R CMD INSTALL IlluminaHumanMethylation450k.db
* installing to library ‘/data/oldR/R-3.1.1/lib64/R/library’
* installing *source* package ‘IlluminaHumanMethylation450k.db’ ...
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Warning: 'IlluminaHumanMethylation450k.db' is deprecated.
Use 'FDb.InfiniumMethylation.hg19' instead.
Use 'FDb.InfiniumMethylation.hg18' instead.
Use 'mapToGenome() function in minfi or methylumi' instead.
See help("Deprecated")
* DONE (IlluminaHumanMethylation450k.db)
Hi, tried your way. But no luck. Here is the output:
* installing to library ‘/usr/local/lib/R/site-library’
* installing *source* package ‘IlluminaHumanMethylation450k.db’ ...
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error : .onLoad failed in loadNamespace() for 'IlluminaHumanMethylation450k.db', details:
call: NULL
error: 'fun' is defunct.
Use 'FDb.InfiniumMethylation.hg19' instead.
Use 'FDb.InfiniumMethylation.hg18' instead.
Use 'mapToGenome() function in minfi or methylumi' instead.
See help("Defunct")
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/usr/local/lib/R/site-library/IlluminaHumanMethylation450k.db’
What is that sed command doing? I can find no difference between the zzz.R files with and without using this command.
You are getting a completely different error than Ben was getting. So why do you think that what I suggested to him would work for you? Is there a particular reason that the FDb.InfiniumMethylation.hg19 is not useful for you?
In that case, you need to make a new post asking why the current version of that package won't install. When I try to install it, I get the same error as you.
Right. And this is because the package is now defunct, which means it is no longer supported, and will be removed soon, probably in the next release. As I mentioned multiple times in this thread, you should be using the FDb.InfiniumMethylation.hg19 package instead, which is intended to replace the IlluminaHumanMethylation450k.db package.
If you are using a package that depends on the IlluminaHumanMethylation450k.db package (which seems not to be possible since it won't build, but whatever), you have two choices. Either take it upon yourself to fix the IlluminaHumanMethylation450k.db package so it will build, or contact the maintainer of the package that depends on it and have them switch to using the Fdb.InfiniumMethylation.hg19 package. The latter seems to be the easier way to go, but ymmv.
But in my case, I need this package because I'm trying to do a practise of my Master, and I had a problem with our website Rstudio app, and now I can't install the package.....
You would be able to install it from an old repository or something like that if you want to use it...
I need to use the package anyway, so if someone can help me, it would be great.
Did you manage to use your library? I have similar problem - I have to use Aclust library, which needs IlluminaHumanMethylation450k.db. I'd be really grateful for any information how you solved this problem, if you did.
Hi, tried your way. But no luck. Here is the output:
* installing to library ‘/usr/local/lib/R/site-library’
* installing *source* package ‘IlluminaHumanMethylation450k.db’ ...
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error : .onLoad failed in loadNamespace() for 'IlluminaHumanMethylation450k.db', details:
call: NULL
error: 'fun' is defunct.
Use 'FDb.InfiniumMethylation.hg19' instead.
Use 'FDb.InfiniumMethylation.hg18' instead.
Use 'mapToGenome() function in minfi or methylumi' instead.
See help("Defunct")
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/usr/local/lib/R/site-library/IlluminaHumanMethylation450k.db’
What is that sed command doing? I can find no difference between the zzz.R files with and without using this command.
You are getting a completely different error than Ben was getting. So why do you think that what I suggested to him would work for you? Is there a particular reason that the FDb.InfiniumMethylation.hg19 is not useful for you?
Thanks for quick response, actually i need to use UCSC CpG island name "IlluminaHumanMethylation450kCPGINAME".
In that case, you need to make a new post asking why the current version of that package won't install. When I try to install it, I get the same error as you.