-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
Description
I get an error if I try to use the latest version of a CRAN package:
library(rix)
rix(r_ver = "latest",
r_pkgs = "Formula@1.2-5", # Current version
ide = "rstudio",
project_path = ".",
overwrite = TRUE,
print = FALSE)
#> Error: Request `curl::curl_fetch_memory(url = 'http://git2nixsha.dev:1506/hash?repo_url=https://cran.r-project.org/src/contrib/Archive/Formula/Formula_1.2-5.tar.gz&branchName=&commit=')` failed:
#> The requested URL returned error: 500
#> If it's a Github repo, check the url, branch name and commit.
#> Are these correct? If it's an archived CRAN package, check the name
#> of the package and the version number.rix(r_ver = "latest",
r_pkgs = "Formula@1.2-4", # Old version works
ide = "rstudio",
project_path = ".",
overwrite = TRUE,
print = FALSE)
rix(r_ver = "latest",
r_pkgs = "ggplot2@3.5.1", # Happens with other packages
ide = "rstudio",
project_path = ".",
overwrite = TRUE,
print = FALSE)
#> Error: Request `curl::curl_fetch_memory(url = 'http://git2nixsha.dev:1506/hash?repo_url=https://cran.r-project.org/src/contrib/Archive/ggplot2/ggplot2_3.5.1.tar.gz&branchName=&commit=')` failed:
#> The requested URL returned error: 500
#> If it's a Github repo, check the url, branch name and commit.
#> Are these correct? If it's an archived CRAN package, check the name
#> of the package and the version number.My intuition is that rix() must be looking into CRAN archives. But those only host old versions so it falls back to treating it like a git repo instead.
Reactions are currently unavailable