Skip to content
Prev 20176 / 63421 Next

install.packages on unix / su (PR#8760)

On Mon, 10 Apr 2006, Thomas Friedrichsmeier wrote:

            
[From a reply I started last night.]

Not obvious at all, especially to those of us who do it all the time.
Many of us set up an account to `own' R, and either install under that
account or change the ownership of the library directory to that account.

I think what you suggest is quite dangerous, as different directories may
be visible to the user account producing the summary information and to
root.  Then update.packages() (run by you) and R CMD INSTALL (run by root) 
may do different things.  This could apply both within a library directory 
(root might have installed a later version of a package not readable by 
you) and over different library trees (my personal R library is not 
readable by root, and indeed the main R library tree is not readable by 
root on our student's machines).

Quoting someone else (without attribution, a breach of copyright)
See the `strong reason' above.  Two of us have suggested better solutions.
If you want yours, you can of course patch your installation, the beauty 
of Open Source.  But unless you can find an R-core member who is prepared 
to maintain your solution, it will not be going into R.