问题描述
我想使用R的 SparkR
包我有一个像 devtools
,<$所有依赖包C $ C> Rtools.exe 等
I am trying to use the SparkR
package in R. I have all dependent packages like devtools
, Rtools.exe
, etc.
当我尝试下面的命令:
install_github("amplab-extras/SparkR-pkg",subdir="pkg")
我收到以下错误:
I get the following error:
Downloading github repo amplab-extras/SparkR-pkg@master
Error in function (type, msg, asError = TRUE ) :
Received HTTP code 403 from proxy after CONNECT
要解决这个问题我已成立了一个工作HTTP_PROXY,https_proxy但它不工作,并抛出上述错误。请指导,我是新来的R / RStudio。
To solve this I have set a working http_proxy, https_proxy but it is not working and throws above error. Please guide as I am new to R/RStudio.
推荐答案
我已经在Windows 7上安装SparkR,64位与R-3.2.X和已经安装了1.4星火
I have installed SparkR on Windows 7, 64 bit with R-3.2.x and having Spark 1.4 installed on it.
**如果您需要了解在Windows上安装星火,请检查星火的官方文件或步骤中列出明智过程的
** If you need to know about installing Spark on Windows, please check official documentation of Spark or step wise process listed here.
-
转到行家的bin文件夹
Go to bin folder of maven
C:\\ Program Files文件\\ Apache的行家-3.3.3 \\ BIN
打开记事本并粘贴文本
%〜DP0 \\ mvn.cmd%*
保存bin文件夹作为mvn.bat记事本如下图所示。
Save the notepad in bin folder as mvn.bat as shown below
C:\\ Program Files文件\\ Apache的行家-3.3.3 \\ BIN \\ mvn.bat
重新启动Rstudio并执行
Restart Rstudio and execute
库(devtools)
install_github(回购/ SparkR-PKG,REF =分支名称,子目录=PKG)
这篇关于错误使用时安装install_github包SparkR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!