Skip to content
Discussion options

You must be logged in to vote

The leading / looks really odd to me here:

.libPaths("/C:/Users/<username>/AppData/Local/R/win-library/4.5")

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.

> .lib…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RobLBaker
Comment options

Answer selected by jmcphers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants