Hello,
I'm trying to install phyloseq and get this error:
source('https://bioconductor.org/biocLite.R')
#Bioconductor version 3.7 (BiocInstaller 1.30.0), ?biocLite for help
biocLite('phyloseq')
Error: 'no packages in repository (no internet connection?)' while trying https://bioconductor.org/packages/3.7/bioc
I tried the way you suggested here: C: Error using biocLite, but get the same error.
options(BioC_mirror="http://bioconductor.org")
> biocLite("org.Hs.eg.db")
Error: 'no packages in repository (no internet connection?)' while trying http://bioconductor.org/packages/3.7/bioc
I do have internet connection. I would appreciate your help with this.
Other information:
R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17134)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] BiocInstaller_1.30.0 dada2_1.9.2 Rcpp_0.12.19
Can you visit http://bioconductor.org/packages/3.7/bioc/bin/windows/contrib/3.5/PACKAGES in your browser? What about in an R session source("http://bioconductor.org/packages/3.7/bioc/bin/windows/contrib/3.5/PACKAGES") ?
In my browser the link goes to a page that begins with
and goes on to list many other packages.
In my R session, when I type
source("http://bioconductor.org/packages/3.7/bioc/bin/windows/contrib/3.5/PACKAGES")
I get:
Error in source("http://bioconductor.org/packages/3.7/bioc/bin/windows/contrib/3.5/PACKAGES") :
http://bioconductor.org/packages/3.7/bioc/bin/windows/contrib/3.5/PACKAGES:2:14: unexpected numeric constant
1: Package: a4
2: Version: 1.28.0
^
:(
EDIT: The ^ is actually under the period between 28 and 0. If it helps...
seems like you _do_ have internet access, including from within R. Can you try explicitly calling BiocManager::biocLite("org.Hs.eg.db") ? I'm not really sure what is going on...
> BiocManager::biocLite("org.Hs.eg.db")
Error in loadNamespace(name) : there is no package called ‘BiocManager’
> biocLite("org.Hs.eg.db")
Error: 'no packages in repository (no internet connection?)' while trying http://bioconductor.org/packages/3.7/bioc
Argh, I meant BiocInstaller::biocLite("org.Hs.eg.db")
BiocInstaller::biocLite("org.Hs.eg.db")
Error: 'no packages in repository (no internet connection?)' while trying http://bioconductor.org/packages/3.7/bioc
:( Sorry, this is my first time doing this....
EDIT:
I also tried this method, but it didn't work:
source("https://raw.githubusercontent.com/joey711/phyloseq/master/inst/scripts/installer.R",
+ local = TRUE)
Installing the release version from BioC
Bioconductor version 3.7 (BiocInstaller 1.30.0), ?biocLite for help
Error: 'no packages in repository (no internet connection?)' while trying http://bioconductor.org/packages/3.7/bioc
Could it be possible that the latest bioconductor version does not have the phyloseq package yet?
PS: I have reached the limit of the number of posts allowed. So I'm unable to make new posts right now. I did try what you suggested and this is what I got:
> contrib.url("http://bioconductor.org/packages/3.7/bioc")
[1] "http://bioconductor.org/packages/3.7/bioc/src/contrib"
> head(available.packages(contrib.url("http://bioconductor.org/packages/3.7/bioc")))
Warning: unable to access index for repository http://bioconductor.org/packages/3.7/bioc/src/contrib:
cannot open destfile 'C:\Users\khp\AppData\Local\Temp\Rtmpk7XwQ3\file79d6884a6a55', reason 'No such file or directory'
Package Version Priority Depends Imports LinkingTo Suggests Enhances License License_is_FOSS License_restricts_use OS_type Archs MD5sum
NeedsCompilation File Repository
I checked that this C:\Users\khp\AppData\Local\Temp exists, but the other folder and file in the path does not exist.
phyloseq is available in that version of Bioconductor.
Try
and
I tried to up-vote your question & answers so you have more credibility... what does
getOption("pkgType")
say? Does it help to putoptions(pkgType = "win.binary")
and then try theavailable.packages()
command again?Thanks. This is what I get:
getOption("pkgType")
[1] "both"
> options(pkgType="win.binary")
> contrib.url("http://bioconductor.org/packages/3.7/bioc")
[1] "http://bioconductor.org/packages/3.7/bioc/bin/windows/contrib/3.5"
> head(available.packages(contrib.url("http://bioconductor.org/packages/3.7/bioc")))
Warning: unable to access index for repository http://bioconductor.org/packages/3.7/bioc/bin/windows/contrib/3.5:
cannot open destfile 'C:\Users\Kaumudi\AppData\Local\Temp\Rtmpk7XwQ3\file79d684df923b8', reason 'No such file or directory'
Package Version Priority Depends Imports LinkingTo Suggests Enhances License License_is_FOSS License_restricts_use OS_type Archs MD5sum
NeedsCompilation File Repository
I believe the error is coming when R tries to download the file http://bioconductor.org/packages/3.7/bioc/bin/windows/contrib/3.5/PACKAGES (which exists) via the equivalent of
Does that fail for you? What is
getOption("download.file.method")
?Yay!! This worked. I did what you just suggested and then did
source('https://bioconductor.org/biocLite.R')
biocLite('phyloseq')
and everything was installed. I must also add that I restarted the machine before doing this.
Thank you Martin for your patience with all my questions! You have been most helpful :-)