Forum Discussion
R script visual - "not writable directory" problem
Hello,
When using R script visual in PBI, i got an error message (this message does appear when using R studio also):
Error in install.packages : 'lib' element ‘C:/Program Files/Microsoft/R Open/R-3.5.1/library’ is not a writable directory
Suggested by posts about the issue, i edited .Renviron file adding this path:
R_LIBS_USER=C:\Program Files\Microsoft\R Open\R-3.5.1\
i tried also with
R_LIBS=C:\Program Files\Microsoft\R Open\R-3.5.1\
However, it still doesnt solve my issue.
Could you please advise? What is missing here?
Hi Boja,
From the error prompt, your current account doesn't have write permission this folder. Either you need to change the permissions for that folder, or change the R library location. If you want to install to the system library, you may run R or Rgui as administrator.
Reference:
"not writable" error when installing new packages on 3.2.0Best regards,
Yuliana Gu
2 Replies
- v-yulgu-msftMicrosoft Employee
Hi Boja,
From the error prompt, your current account doesn't have write permission this folder. Either you need to change the permissions for that folder, or change the R library location. If you want to install to the system library, you may run R or Rgui as administrator.
Reference:
"not writable" error when installing new packages on 3.2.0Best regards,
Yuliana Gu
- BojaAdvocate II
Thanks, Yuliana!
It helped :)