I have this problem. I have installed "R x64 3.5.2" on Windows 10 and created a shortcut on my desktop to open it. If I open R from the shortcut I can install packages without problems, and R saves all the packages in the folder C:\Users\Name_of_my_user\RtmpGCLl28. If I open R from the folder where R is installed (the same that the shortcut should open) I can't find the libraries that I previously installed and in addition to that I cannot install packages and R returns these lines:
Errore: unable to create temporary directory ‘C:\Users\Name_of_the_user\Documents\R\win-library\3.5\file14a830d675c9’ Inoltre: Warning message: In dir.create(tmpDir) : cannot create dir 'C:\Users\Name_of_the_user\Documents\R\win-library\3.5\file14a830d675c9', reason 'No such file or directory'
How can I fix this problem? Thank you.