Can't access User Library in R - “Non-Zero Exit Status” warning

前端 未结 8 2005
猫巷女王i
猫巷女王i 2020-12-30 10:19

When I tried to install packages on my work laptop, I got an error. I\'ve been told that I have full privileges with the laptop, so there should be no blocks.

I thi

8条回答
  •  北荒
    北荒 (楼主)
    2020-12-30 11:04

    i was struggling with the same problem, for a long time and mikes solution didnt help me either. I tried everything upto reinstalling R. Still didnt work. However the solution is quite simple in my case. In the Terminal dont run R as R but use:

    sudo -i R
    

    or change ownership of the r package folders, becaues if its owned by root you are not allowed to read or write in it.

提交回复
热议问题