I installed a new version of R and tried to use pak to install the exact same packages as in the old version. pak reported an error due to dependency conflicts.
r-packages.txt
pkgs <- readLines('r-packages.txt')
pak::pak(pkgs)
> sessionInfo()
R version 4.6.0 (2026-04-24 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 22621)
Matrix products: default
LAPACK version 3.12.1
locale:
[1] LC_COLLATE=Chinese (Simplified)_China.utf8
[2] LC_CTYPE=Chinese (Simplified)_China.utf8
[3] LC_MONETARY=Chinese (Simplified)_China.utf8
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.utf8
time zone: Asia/Shanghai
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets
[6] methods base
loaded via a namespace (and not attached):
[1] compiler_4.6.0 tools_4.6.0 pak_0.9.5
I installed a new version of R and tried to use pak to install the exact same packages as in the old version. pak reported an error due to dependency conflicts.
r-packages.txt