I understand from this post How do I install an R package from source?
that you need to specify
install.packages("file or path to file if downloaded", repos=NULL, type="source").
However, my issue is when using a bioconductor package that doesn't install correctly using
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("packagename")
When I use the alternative;
install.packages("https://bioconductor.org/packages/release/bioc/html/xcms.html/xcms_3.20.0.tar.gz", repos=NULL, type="source")
OR
install.packages("C:/Users/XXX/Downloads/xcms_3.20.0.tar.gz", repos=NULL, type="source")
Neither works, regarding the first it says the page is not found.
I noticed when using the BiocManager, the http it tried to download from was https://bioconductor.org/packages/3.16/data/experiment/src/contrib/4.2/xcms_3.20.0.zip, but for me the access is forbiden.
Question - where do I find a readable http source link to download a Bioconductor package?