Thanks to everyone for their answers. The problem is indeed a Windows problem.
The default setting for document storage in Windows 10 is OneDrive which is
Microsoft's cloud storage service. This seems to be new for Windows 10. (I
didn't have this problem running R under Windows 8.1 which
I've run into this problem on nearly every new machine I've touched in the
past year. Here is a solution that has consistently worked for me in
Windows 7 & 10:
1. Use .libPaths() to find where packages are being stored.
2. To change this path: Control Panel > search “View advanced
Some more info:
1. The library folder have to exist; if not, then R will silently ignore it.
2. Try call your .libPaths(my_new_folder) setup in an interactive R
session. Then, in the same session, look at .libPaths(). The first
element should be your new folder. If not, make sure it exists,
Pemissions settings on your target directory (which is a Windows not an R
issue)??
-- Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Wed, Jul 25, 2018
I just installed R 3.5.1 on a new Windows 10 computer. R tries to set a
personal library to C:/Users/jackp/OneDrive/Documents/R/win-lib/3.5. I want to
store R packages on my local hard drive, not OneDrive. I tried placing the
line of code:.libPaths(c(.libPaths(),
5 matches
Mail list logo