R Connection with MongoDB



Hi Guys,

I am installing the package for “rJava” using install.packages(“rJava”) and I am getting the result as

Installing package into ‘C:/Users/saurabh.e.rai/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
trying URL ‘https://cran.rstudio.com/bin/windows/contrib/3.4/rJava_0.9-10.zip
Content type ‘application/zip’ length 726100 bytes (709 KB)
downloaded 709 KB

package ‘rJava’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in

after this when I am loading the library as library(RMongo) I am getting the result as

Loading required package: rJava
Warning messages:
1: package ‘RMongo’ was built under R version 3.4.4
2: package ‘rJava’ was built under R version 3.4.4 .

Please help guys as I have tried with different things but nothing worked.


Since these are warnings and not errors, you may go ahead and try connecting mongo with R. Reference: https://stackoverflow.com/questions/27395777/creating-r-package-warning-package-was-built-under-r-version-3-1-2