<分区>
我在阅读并尝试了 :-
中提到的建议后发布了这个问题Offline install of R package and dependencies
我希望创建一个本地包存储库,用于在 Linux R 服务器实例中安装 tar.gz 包。
我完全按照这篇文章中提到的说明进行操作:-
Step 1 - Downloaded all R packages to the source destination on Linux.
Step 2 - Used library(tools) write_PACKAGES("/path/to/packages/") This created 2 files in /path/to/packages/ :- PACKAGES and PACKAGES.GZ
Step 3 - Launched R (v 3.2.0) and ran this command :- install.packages("ggplot2", contrib.url="file:///path/to/packages/")
但是,会弹出 CRAN 菜单(提示选择 CRAN 镜像)。我的印象是它不会。当我继续选择存储库并点击确定时,我收到以下错误消息:-
download.file(url, destfile, method, mode = "wb", ...) 错误:未使用的参数 (contrib.url = "path/to/packages/")
有人可以帮忙吗