Hi everyone,
I’m using a university MacBook Air with Apple Silicon (M4) and recently installed R 4.4.3 arm64 from CRAN. Here’s the situation:
1. R installation:
- Removed all old Intel R and RStudio installations from Mac Intel.
- Reinstalled R arm64 from CRAN official installer.
.libPaths()points correctly to/Library/Frameworks/R.framework/Versions/Current/Resources/library.
- Problem at startup in terminal R:
During startup - Warning messages:
1: package ‘utils’ in options("defaultPackages") was not found
2: package ‘stats’ in options("defaultPackages") was not found
getOption("defaultPackages")shows:"datasets" "utils" "grDevices" "graphics" "stats" "methods".library(stats)andlibrary(utils)work manually in R terminal without errors.
- Problem with IDEs:
- RStudio / VS Code / radian will not start because they rely on automatic loading of default packages.
- Other details:
- All old R folders were removed, and caches cleared (
~/Library/Caches/R,~/R_libs,~/.R). - Only R framework arm64 is installed.
Question:
- Why do
statsandutilsfail to load automatically at R startup even with a fresh arm64 installation? - How can I fix this so that:
- Terminal R starts cleanly without warnings,
- IDEs like RStudio or VS Code can launch properly.
Thanks for any help!
