pak (or something) seems to think that MASS requires a future version of R. install.packages("MASS") works fine. Still got the error after running pak::pak_update()
pak::pak("MASS")
#> ✔ Loading metadata database ... done#> Error: Cannot install packages: #> * MASS: Needs R >= 4.3#> Type .Last.error.trace to see where the error occurred.Last.error.trace#>#> Stack trace:#>#> 12. (function (...) ...#> 13. base:::withCallingHandlers(cli_message = function(msg) { ...#> 14. get("pkg_install_make_plan", asNamespace("pak"))(...)#> 15. prop$stop_for_solution_error()#> 16. private$plan$stop_for_solve_error()#> 17. pkgdepends:::pkgplan_stop_for_solve_error(self, private)#> 18. base:::stop("Cannot install packages:\n", msg, call. = FALSE)#> 19. base:::.handleSimpleError(function (e) ...#> 20. h(simpleError(msg, call))#> 21. base:::stop(e)#> 22. (function (e) ...#>#> x Cannot install packages:#>* MASS: Needs R >= 4.3
The text was updated successfully, but these errors were encountered:
❯ pak::pak("any::MASS?reinstall")
→ Will install 1 package.
→ The package (1.16 MB) is cached.
+ MASS 7.3-57
ℹ No downloads are needed, 1 pkg (1.16 MB) is cached
✔ Installed MASS 7.3-57 (25ms)
✔ 1 pkg: added 1 [210ms]
Another workaround:
❯ pak::pak("MASS", upgrade = FALSE)
→ Will update 1 package.
→ The package (1.16 MB) is cached.
+ MASS 7.3-56 → 7.3-57
? Do you want to continue (Y/n)
ℹ No downloads are needed, 1 pkg (1.16 MB) is cached
✔ Installed MASS 7.3-57 (26ms)
✔ 1 pkg: upd 1 [2.8s]
Spotted at https://twitter.com/LisaDeBruine/status/1531692679192621056
pak(or something) seems to think thatMASSrequires a future version of R.install.packages("MASS")works fine. Still got the error after runningpak::pak_update()The text was updated successfully, but these errors were encountered: