R(对于Windows)在安装软件包之前将它们存储在何处? [英] Where does R (for Windows) store packages before it installs them?

查看:97
本文介绍了R(对于Windows)在安装软件包之前将它们存储在何处?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道已安装软件包的去向! ICMY,在这里很好地概述了它:

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

R在哪里存储软件包?

但是,我确实想知道R在哪里缓存从CRAN下载的ZIP文件(假设是Windows),即在将它们安装在库中之前.

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.

最感谢您的帮助!

推荐答案

来自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).

上述会话的临时目录由tempdir()命令

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

这篇关于R(对于Windows)在安装软件包之前将它们存储在何处?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆