Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I recently attended an R training course and was happily working with a laptop in RStudio. On my return to the office I installed RStudio and I tried to run some scripts I had gathered from the course. However, these scripts required me to install packages and when I tried to install the packages the result was an error.

Error in install.packages : path[1]="\file/users/bernard/R/win-library/2.15": Access is denied

In my firm we write to a server drive refferred to as the U: drive rather than the hard disk on the desktop for security reasons. Any ideas what is going on?

I have checked the properties of the folder in windows and it says I have permission but still it fails. I have tried creating a folder on the C drive and directing R_LIBS_USER to it but no luck.

share|improve this question
add comment

migrated from stackoverflow.com Nov 12 '12 at 4:53

This question came from our site for professional and enthusiast programmers.

1 Answer

Your best hope would probably be to change your library location:

.libPaths("U:/somefolder/library")

This way all of your packages will be installed to the network drive.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.