[Rd] symbolic linking to library files
Kasper Daniel Hansen
khansen at stat.Berkeley.EDU
Fri Jul 18 08:19:39 CEST 2008
I agree with the other poster's advice to just give guru permission to
write to the R library folder.
But the thing you want is the following. Create a directory somewhere
that guru has write permission, for example
(although I guess I would recommend somewhere else than guru's home
directory) and do an R CMD INSTALL into that directory, for example by
R CMD INSTALL Blaster -l ~guru/library
You can make this directory accessible for all your users by altering
site.profile to contain for example
or by creating an environment variable for all users (how you do that
can probably be accomplished in many ways), like
That should be enough to get you started.
On Jul 17, 2008, at 6:16 PM, egc wrote:
> I handle SysAdmin for a multi-user Linux box, with R 2.7.1 compiled
> installed to make usee of ACML (Opteron chips). The library files
> are installed to /usr/local/lib64/R/library
> Everything works as it should, except for the following. Say I have
> a user
> (an R developer) who has developed a package called Blaster. We'll
> call the
> user guru. Now, /home/guru/Blaster, contains the needed directory
> to do a normal install (i.e., R CMD INSTALL Blaster), but the user
> write to /usr/local/lib64/R/library. Sure, said user can do a local
> so *he* can use Blaster, but we'd like it so that changes guru makes
> Blaster are available to everyone.
> My first simple-minded solution to this was to simply create a
> symbolic link
> to Blaster from within /usr/local/lib64/R/library. However, this
> seem to work. Invoking library(Blaster) gives an error message about
> not being a valid library.
> Apparently, R CMD INSTALL Blaster does something more than simply copy
> Blaster to the appropriate directory. I did a quick perusual of what
> I could
> find online, but I suspect I've missed something - hopefully not too
> embarassingly obvious.
> Basically, what I'd like to do is create a symbolic link to
> 'something' that
> guru creates, from within /usr/local/lib64/R/library, such that (i)
> is available to all users on the system, and (ii) any changes Guru
> makes to
> his code are automatically available. Is anything like this feasible?
> [[alternative HTML version deleted]]
> R-devel at r-project.org mailing list
More information about the R-devel