Entering edit mode
Why is this code not working?
> BiocManager::install("dada2", version = "3.16")
'getOption("repos")' replaces Bioconductor standard repositories, see
'?repositories' for details
replacement repositories:
CRAN: http://ftp.osuosl.org/pub/cran/
Warning: unable to access index for repository https://bioconductor.org/packages/3.16/bioc/src/contrib:
cannot open URL 'https://bioconductor.org/packages/3.16/bioc/src/contrib/PACKAGES'
Warning: unable to access index for repository https://bioconductor.org/packages/3.16/data/annotation/src/contrib:
cannot open URL 'https://bioconductor.org/packages/3.16/data/annotation/src/contrib/PACKAGES'
Warning: unable to access index for repository https://bioconductor.org/packages/3.16/data/experiment/src/contrib:
cannot open URL 'https://bioconductor.org/packages/3.16/data/experiment/src/contrib/PACKAGES'
Warning: unable to access index for repository https://bioconductor.org/packages/3.16/workflows/src/contrib:
cannot open URL 'https://bioconductor.org/packages/3.16/workflows/src/contrib/PACKAGES'
Warning: unable to access index for repository https://bioconductor.org/packages/3.16/books/src/contrib:
cannot open URL 'https://bioconductor.org/packages/3.16/books/src/contrib/PACKAGES'
Bioconductor version 3.16 (BiocManager 1.30.19), R 4.2.2 (2022-10-31
ucrt)
Installing package(s) 'dada2'
Warning: unable to access index for repository https://bioconductor.org/packages/3.16/bioc/src/contrib:
cannot open URL 'https://bioconductor.org/packages/3.16/bioc/src/contrib/PACKAGES'
What is your
sessionInfo()
so we know what system you are using? Also are you online with internet access?Here is my sessioninfo().
I have internet access.
R version 4.2.2 (2022-10-31 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19045)
Matrix products: default
locale: [1] LC_COLLATE=English_United States.utf8 [2] LC_CTYPE=English_United States.utf8
[3] LC_MONETARY=English_United States.utf8 [4] LC_NUMERIC=C
[5] LC_TIME=English_United States.utf8
attached base packages: [1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached): [1] fansi_1.0.4 dplyr_1.1.0 utf8_1.2.3 grid_4.2.2
[5] R6_2.5.1 lifecycle_1.0.3 gtable_0.3.1 magrittr_2.0.3
[9] scales_1.2.1 ggplot2_3.4.1 pillar_1.8.1 rlang_1.0.6
[13] cli_3.6.0 rstudioapi_0.14 generics_0.1.3 vctrs_0.5.2
[17] tools_4.2.2 glue_1.6.2 munsell_0.5.0 compiler_4.2.2
[21] pkgconfig_2.0.3 colorspace_2.1-0 tidyselect_1.2.0 tibble_3.1.8
There are some some tips and suggested items in this related post: unable to access index for repository
Thank you for the link to the other related post. I am actually still experiencing issues after trying all the suggestions. This is my latest code:
It looks like the dependency Rccp is actually the reason it is failing. Can you try installing just Rccp and see if there is a more detailed ERROR message. Also please place code output with a pre and post triple backtick to format output correctly.
My apologies. here is the error message that appeared.
It looks like the download of the files from the CRAN mirror is failing and the download isn't completefor Rccp and now httpuv. I would try increasing the download timeout to something greater like
options(timeout=1000000)
and trying again to see if the package finishes downloading (or at least get a greater length) or if it persists using a different CRAN mirror.Hello! I have tried that
options(timeout=1000000)
and this is the result.It's Rcpp, not Rccp.
Thank you for the clarification. I have tried it with Rcpp and I am still encountering errors in the downloading. I am working from a work computer and their provided network. Could this be the issue?
I can download
Rcpp
from the RStudio CRAN repo, so you could try again. Alternatively, you were able to use http://ftp.osuosl.org/pub/cran/ previously, so you could tryI tried the code you added.
I also tried to change it to RStudio CRAN repo.
You might check with IT to see if they are blocking things. Also, do note the difference between the two repositories. In the first case you download some of the package but it appears to stop (did you adjust the timeout?). In the second case you get a 503 from the repository.
Would you suspect that IT is blocking downloads from cran.rstudio.com?
In regard to the first case, I used the code
options(timeout=1000000)
.What does the 503 error suggest?