You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pak fails to install terra 1.6.47 with error "[email protected]: Conflicts with [email protected]", but the specified version installs fine using remotes. Also tested on macOS (Sonoma) running R 4.4.1.
Is pak failing due to a conflict between multiple repositories hosting the same package?
pak::pkg_install("[email protected]")
#> ℹ Loading metadata database#> ✔ Loading metadata database ... done#>#> Error: ! error in pak subprocess#> Caused by error:#> ! Could not solve package dependencies:#> * [email protected]: Conflicts with [email protected]
packageVersion("terra")
#> Error in packageVersion("terra"): there is no package called 'terra'
options("repos")
#> $repos#> P3M#> "https://packagemanager.posit.co/cran/__linux__/bullseye/latest"#> CRAN#> "https://cloud.r-project.org"
I think this is probably a bug in pak. It probably happens because the version is actually called 1.6-47 and not 1.6.47. At least 1.6-47 works fine for me in a very similar setup:
pak
fails to installterra 1.6.47
with error"[email protected]: Conflicts with [email protected]"
, but the specified version installs fine usingremotes
. Also tested on macOS (Sonoma) running R 4.4.1.Is
pak
failing due to a conflict between multiple repositories hosting the same package?Created on 2024-10-10 with reprex v2.1.1
Session info
and with
remotes
:Created on 2024-10-10 with reprex v2.1.1
Session info
The text was updated successfully, but these errors were encountered: