Open achubaty opened 2 years ago
Seems like a bug in the server to me. At least almost all web servers allow double slashes there AFAICT:
❯ options(repos = c(PE = 'https://cloud.r-project.org/'))
❯ pak::repo_ping()
Repository summary: source aarch64-apple-darwin20
PE @ cloud.r-project.org ✔ ✔ (586ms)
CRAN @ cran.rstudio.com ✔ ✔ (623ms)
BioCsoft @ bioconductor.org ✔ ✔ (624ms)
BioCann @ bioconductor.org ✔ ✔ (821ms)
BioCexp @ bioconductor.org ✔ ✔ (781ms)
BioCworkflows @ bioconductor.org ✔ ✔ (836ms)
BioCbooks @ bioconductor.org ✔ ✔ (751ms)
❯ curl -np -f https://predictiveecology.r-universe.dev//src/contrib/PACKAGES.gz >/dev/null
curl: (22) The requested URL returned error: 404
❯ curl -np -f https://cloud.r-project.org//src/contrib/PACKAGES.gz >/dev/null
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1362k 100 1362k 0 0 396k 0 0:00:03 0:00:03 --:--:-- 396k
I have turned on Normalize URLs to origin
in Cloudflare now (under rules > settings). That should fix this problem at least for r-universe.
specifying additional cran-like repo with a trailing slash causes failures when installing packages (
ℹ source packages are missing from predictiveecology.r-universe.dev
).whereas, removing the trailing slash works: