How to install RMongo package in R

4.8k Views Asked by At

I have installed 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. But I am not able to install this package. Please help me.

3

There are 3 best solutions below

4
On

To install packages from github, first install and load the devtools package:

install.packages("devtools")
library(devtools)

Then use install_github.

install_github("Rmongo", "tc")

Though in this case, Rmongo is on CRAN, so you can just do:

install.packages("RMongo") //name of package is case sensitive 
0
On

I have used below command. it's worked for me.

install.packages("devtools")
library(devtools)
install.packages("rJava")
library(rJava)
install_github("tc/Rmongo")
0
On

Try...
install_github("tc/RMongo")