[英]How to install RMongo package in R
I have installed R 3.1.2.我已经安装了 R 3.1.2。 I want to install
RMongo
package so that I can access my mongoDB database.I have downloaded RMongo-master.zip
file from GitHub.我想安装
RMongo
包,以便我可以访问我的 mongoDB 数据库。我已经从 GitHub 下载了RMongo-master.zip
文件。 But I am not able to install this package.但是我无法安装这个包。 Please help me.
请帮我。
To install packages from github, first install and load the devtools
package:要从 github 安装包,首先安装并加载
devtools
包:
install.packages("devtools")
library(devtools)
Then use install_github
.然后使用
install_github
。
install_github("Rmongo", "tc")
Though in this case, Rmongo
is on CRAN, so you can just do:虽然在这种情况下,
Rmongo
在 CRAN 上,所以你可以这样做:
install.packages("RMongo") //name of package is case sensitive
I have used below command.我使用了以下命令。 it's worked for me.
它对我有用。
install.packages("devtools")
library(devtools)
install.packages("rJava")
library(rJava)
install_github("tc/Rmongo")
Try...尝试...
install_github("tc/RMongo") install_github("tc/RMongo")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.