ITADN
r-lib/pak/Issues

pak fails to update packages on windows (linux is fine)

#878OpeniamYannC 创建于 2026-05-18
I
iamYannCcommented
pak doesn't seem to resolve conflicts on windows. On my wsl (buntu 24.2 i think) its fine. ### Session info Powershell as administrator ``` version R version 4.5.2 (2025-10-31 ucrt) os Windows 11 x64 (build 26200) system x86_64, mingw32 ui RTerm language (EN) ``` ### Seni-Full output: ``` Rscript -e "pak::pkg_install(rownames(installed.packages()))" ✔ Loading metadata database ... done Error: ! error in pak subprocess Caused by error: ! Could not solve package dependencies: * abind: dependency conflict * anytime: dependency conflict * archive: dependency conflict * arrow: dependency conflict * askpass: dependency conflict .. .. .. * cli: dependency conflict .. .. .. * nnet: dependency conflict * rpart: dependency conflict * spatial: dependency conflict * translations: Can't find package called translations. --- Backtrace: 1. pak::pkg_install(rownames(installed.packages())) 2. pak:::remote(function(...) get("pkg_install_make_plan", asNamespace("pak"))(...), … 3. err$throw(res$error) --- Subprocess backtrace: 1. base::withCallingHandlers(cli_message = function(msg) { … 2. get("pkg_install_make_plan", asNamespace("pak"))(...) 3. prop$stop_for_solution_error() 4. private$plan$stop_for_solve_error() 5. pkgdepends:::pkgplan_stop_for_solve_error(self, private) 6. base::throw(new_error("Could not solve package dependencies:\n", msg, … 7. | base::signalCondition(cond) 8. global (function (e) … Execution halted ``` ### When I try with `install.packages` I'm prompted to restart the R session. then I do, then it still doesnt work. Then i delete the 00LOCK file. It's such a mess. Im a simple guy. I just want to use the gui, click update packages, and move on with my day. /:
2 条评论