Skip to content
Prev 14155 / 15075 Next

CRAN installer for macOS - directory permissions

I think we should distinguish here between ?what one wants personally? and ?how R works on most systems? and ?why a user library exists in the first place?.
Both Windows and Linux don?t allow ?normal users? to write into the system lib and require a user library (which to me is the right approach).
-> Aligning macOS to this state would simplify things for users.

Also user libraries are a quite common thing across many languages. R is a bit special here in that it ships much of it ?default? functionality split in ?base? and ?recommended? packages of which some are mainly there for historic reasons (arguably).
I really don?t think that everything should be in one library, simply for the fact that users can easily destroy the system-wide installation by this.
I didn?t say they should not. But they should install updated recommended packages into the user lib. Updated versions of rec. pkgs in there will be take precedence when loading. This is how things are working on Win and Linux since ever (?).
Why would users need to update the default copy in the system lib?
I strongly disagree.
Modern users don?t just live on one operating system these days.
They switch between multiple ones even during the day (e.g. by using R in a central RStudio Workbench installation which usually run on Linux) and a local installation on their machine running Win or Mac.
This is in fact the standard for thousands of people - and I am in contact with many of such in my daily R consulting/system administration work.
Also even if you are a ?one OS only? user and you aim to switch at some point, after many years?you would want to have things work the same way in your new OS, wouldn?t you?
I was not aiming to reuse those for the updated minor version but preserving them for the previous minor version to be able to switch to this.
This is actually a quite common task and I do this almost on a daily base (yes really).
E.g. right now I am switching between 4.1.3 and 4.2.0 (the former for projects, the latter for pkg dev).
I think you?re confusing things here. If you install an updated version it will go into your preferred library and will be available to you afterwards. You cannot ?just use the old one?.
You should not update recommended pkgs in the system lib, it should not be touched by a normal user. Just interact with your user library and be happy.
This is not a flaw at all, this is how it works on Win and Linux and many people are happy with it.

And ?jump through the sudo hoop? - is it really a problem to call `sudo` once and put in your PW if you aim to interact with the system lib? If this is a real argument than my time spent arguing about technical details feels worthless?
I think the concept of a user lib is just fine.
If at all, those changes should be implemented and discussed across OS for R and not implemented in one OS only.
The way R is installed and behaves on an admin level on Win/Linux/Mac essentially differs in many points but for no real reason often, i.e. the behavior could be aligned in many places.
I think this is quite subjective, I use such tools all day. And I know many other people who do.
One major point is reproducibility (among others) which is otherwise quite hard to achieve.
The mileage varies here and also how people use R. I think allowing people to be as flexible as possible should be the goal, no matter how much of this flexibility is used in the end.

Having multiple versions installed side-by-side is so much easier for other programming languages and R could really do better here in my opinion.

Cheers
Patrick
On 2 May 2022, at 22:28, Duncan Murdoch wrote:

            
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20220503/ad2ddf56/attachment-0001.html>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 870 bytes
Desc: OpenPGP digital signature
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20220503/ad2ddf56/attachment-0001.sig>