Upgrading r DELETES all existing R packages #2913
-
This has just deleted my ENTIRE R library. No questions asks, no warnings, nothing. CLEARLY wrong and EVIL. Whom do I ask to fix this? Could this behaviour be controlled at the cask level, or is it inherent to the brew's updating logic? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Objects in the Have you set
The env hint answers your question. You should probably follow the recommendation to see |
Beta Was this translation helpful? Give feedback.
-
Hello @carlocab, @x1o, The official pkg contains 4 components and mentions that the latter 2, the Tcl/Tk and the Texinfo are optional. But in reality the R GUI app component is also optional. So I only install/update the R framework from the pkg. With this, I can use the CRAN distributed binary packages too. As IDE, I use RStudio, not the bundled R GUI app. For the source packages, I have the Xcode CLT (for C/C++), and the gcc (for gfortran) installed. I use a simple Makevars file to define the Fortran compiler- and lib locations and options. I install gcc with To upgrade the R framework (eg. from 4.1.1 to 4.1.2) is as simple as downloading the pkg and performing the same custom install with only the R framework selected in the installer. The installer performs the upgrade as expected. |
Beta Was this translation helpful? Give feedback.
-
@carlocab, @imrehorvath, I've just double-checked the default installation path of R 4.1.2, and it's Sorry for the fuss |
Beta Was this translation helpful? Give feedback.
@carlocab, @imrehorvath, I've just double-checked the default installation path of R 4.1.2, and it's
/usr/local/lib/R/4.1/site-library
-- seems like the right place for me. Nothing changed in my environment and / or R config files since I've had R 4.1.1_1, so it's a bit confusing why it now uses the correct location instead of/usr/local/Cellar/r/4.1.2/lib/R/library
😔Sorry for the fuss