Where does R (for Windows) store packages before it installs them?

最后都变了- 提交于 2019-12-08 08:42:53

问题


I am aware of where the installed packages go! ICMY, it's nicely outlined here:

Where does R store packages?

However, I do wonder where R caches the ZIP files (assuming Windows) it downloads from CRAN, i.e. prior to installing them in the library.

Any help most appreciated!


回答1:


From the documentation for install.package :

destdir (parameter, default=NULL) : directory where downloaded packages are stored. If it is NULL (the default) a subdirectory downloaded_packages of the session temporary directory will be used (and the files will be deleted at the end of the session).

The session's temp dir mentioned above is given by tempdir() command



来源:https://stackoverflow.com/questions/39595090/where-does-r-for-windows-store-packages-before-it-installs-them

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!