简体   繁体   中英

I can install packages in R only opening R from the desktop

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.

Perhaps it's a permission-related error. Try "Run as administrator" option. Also, following solutions maybe work for you: [1] [2] [3] [4]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM