Register Login

Install and Configure R using Expert Analytics

Updated May 19, 2018

How to manually install and configure R using Expert Analytics?

SOLUTION 

The steps given below are for MS Windows system but we can also use it in nix system. 

Note: In the steps given below please make sure to replace R-n.n.n manually with the version of R being installed in your system e.g. R-2.0.0.

Step 1) First manually exit and install the desired version of R (n.n.n) into %public%R-n.n.n as your target.  Assuming %public% goes to C:UsersPublic

Step 2) No navigate to C:UsersPublicR-n.n.nbinx64 and then launch Rgui.exe.

Step 3) Now you need to copy and paste the following commands in order to get all the important needed packages

setInternet2(T)

  • install.packages("rJava", dependencies=T, lib="C:/Users/Public/R-n.n.n/library")
  • install.packages("RODBC", dependencies=T, lib="C:/Users/Public/R-n.n.n/library")
  • install.packages("RJDBC", dependencies=T, lib="C:/Users/Public/R-n.n.n/library")
  • install.packages("DBI", dependencies=T, lib="C:/Users/Public/R-n.n.n/library")
  • install.packages("monmlp", dependencies=T, lib="C:/Users/Public/R-n.n.n/library")
  • install.packages("AMORE", dependencies=T, lib="C:/Users/Public/R-n.n.n/library")
  • install.packages("pmml", dependencies=T, lib="C:/Users/Public/R-n.n.n/library")
  • install.packages("XML", dependencies=T, lib="C:/Users/Public/R-n.n.n/library")
  • install.packages("arules", dependencies=T, lib="C:/Users/Public/R-n.n.n/library")
  • install.packages("caret", dependencies=T, lib="C:/Users/Public/R-n.n.n/library")
  • install.packages("reshape", dependencies=T, lib="C:/Users/Public/R-n.n.n/library")
  • install.packages("plyr", dependencies=T, lib="C:/Users/Public/R-n.n.n/library")
  • install.packages("foreach", dependencies=T, lib="C:/Users/Public/R-n.n.n/library")
  • install.packages("iterators", dependencies=T, lib="C:/Users/Public/R-n.n.n/library")
  • install.packages("adabag", dependencies=T, lib="C:/Users/Public/R-n.n.n/library")
  • install.packages("ggplot2", dependencies=T, lib="C:/Users/Public/R-n.n.n/library")
  • install.packages("reshape2", dependencies=T, lib="C:/Users/Public/R-n.n.n/library")
  • install.packages("nnet", dependencies=T, lib="C:/Users/Public/R-n.n.n/library")
  • install.packages("rpart", dependencies=T, lib="C:/Users/Public/R-n.n.n/library")
  • install.packages("randomForest", dependencies=T, lib="C:/Users/Public/R-n.n.n/library")

Step 4) Now from the PA menu: File => Install and Configure R

Note: Please make sure to select the checkbox for "Enable open source R algorithms" and also ensure that the folder specified is C:UsersPublicR-n.n.n as defined in above steps.

Step 5) Now at last, please check and set up environment variables correctly.

When the user installs R packages and R environment on different places, then the environment variables R_LIBS and R_HOME are needed to set accordingly.

Now please check if a folder with name of the required package exists under the library subfolder in the R-path which is configured on EA C:UsersPublicR-n.n.nlibrary

Also, call the .libPaths() R function in order to find out all the repositories to which R packages are installed, and configure set paths to these packages to R_LIBS environment variable. Also, create R_LIBS if it does not exist.


×