我想从github安装一个软件包并跳过arch i386的安装。 基于this问题(遗憾的是没有回答),我尝试了以下但无济于事:
library(devtools)
install_github("ramnathv/rCharts", configure.args = "--no-multiarch")
install_github("ramnathv/rCharts", configure.args = list(rCharts = "--no-multiarch"))
install_github("ramnathv/rCharts", configure.args = list(`ramnathv/rCharts` = "--no-multiarch"))
install_github("ramnathv/rCharts", configure.vars = "--no-multiarch")
install_github("ramnathv/rCharts", configure.vars = list(rCharts = "--no-multiarch"))
install_github("ramnathv/rCharts", configure.vars = list(`ramnathv/rCharts` = "--no-multiarch"))
我可以通过下载软件包并通过
安装来实现我的目标R CMD INSTALL --no-multiarch rCharts.tar.gz
使用devtools :: install_github时,如何指定“--no-multiarch”参数?
我正在使用devtools_1.12.0运行R3.3.0。使用packrat_0.4.7-1创建本地库。
请参阅下面的sessionInfo:
R version 3.3.0 (2016-05-03)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows Server >= 2012 x64 (build 9200)
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] nxPacMan_0.4.0 devtools_1.12.0
loaded via a namespace (and not attached):
[1] httr_1.2.1 R6_2.2.0 tools_3.3.0 withr_1.0.2 curl_2.3 memoise_1.0.0 git2r_0.16.0 digest_0.6.10
[9] packrat_0.4.7-1
非常感谢你的帮助。
马库斯
答案 0 :(得分:5)
我发现为我工作的唯一方法是设置选项:
library(devtools)
options(devtools.install.args = "--no-multiarch")
install_github("ramnathv/rCharts")
答案 1 :(得分:0)
这对我有用:
devtools::install_github("snowflakedb/dplyr-snowflakedb",
INSTALL_opts=c("--no-multiarch"))