Incorrect permissions to edit database package
1
0
Entering edit mode
@michael-watson-iah-c-378
Last seen 10.2 years ago
Hi I am running R 2.0 on Suse Linux 8.2. I get an error message when loading a library (affy): "Incorrect permissions to edit the package database, /usr/lib/R/library/liblisting.Rda: save.locLib(locLibList, curLib)" However, when I look at that file, the user I am running R as has r and w permissions on it.... So firstly - any ideas why I get this error message? And secondly, does it matter that I am getting it? I don't get it if I run R as root (obviously) but I don't really want to be doing that (obviously) Cheers Mick ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
• 730 views
ADD COMMENT
0
Entering edit mode
Jeff Gentry ★ 3.9k
@jeff-gentry-12
Last seen 10.2 years ago
> However, when I look at that file, the user I am running R as has r and > w permissions on it.... I'm assuming 'yes' due to your stating that you're running R as root but do you also have write access on the directory as well? > So firstly - any ideas why I get this error message? And secondly, does > it matter that I am getting it? I don't get it if I run R as root > (obviously) but I don't really want to be doing that (obviously) save.locLib uses the test 'file.access(lib,mode=2)', where 'lib' is the directory that the library is in. It is worth trying this from within R: file.access("/usr/lib/R/library", mode = 2) and if the result is non-zero then R believes that you in fact don't have write access. This does seem odd though - is it only when you're loading affy, or does it happen when loading other packages? -J
ADD COMMENT

Login before adding your answer.

Traffic: 922 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6