-
|
Hello, unforutnatley I'm not able to run my machine as an administrator so I need to change the default directory that packages are written to. I can't seem to figure out how to do this. Any other ideas on how to change paths or why this isn't working? (on a side not, Rstudio does have "/C:/Users//AppData/Local/R/win-library/4.5" as the default location for packages and I am able to install packages using Rstudio) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
The leading What happens if you remove that? Also and perhaps more importantly, I feel like the default Windows setup is to always have a user library (which you can write to) and a "system" library (which apparently you can't write to, in your case). If you restart R and inspect On my mac, if I call |
Beta Was this translation helpful? Give feedback.
The leading
/looks really odd to me here:What happens if you remove that?
Also and perhaps more importantly, I feel like the default Windows setup is to always have a user library (which you can write to) and a "system" library (which apparently you can't write to, in your case). If you restart R and inspect
.libPaths()before trying to change anything, what do you see?On my mac, if I call
.libPaths()with a bad path, that silently fails, but also clobbers my user library, leaving me with just the system library. Which is what you're seeing. I suspect something similar may have happened earlier in your R session.