Install

R

sudo apt-get install r-base r-base-dev

Redis

sudo apt-get install redis-server

libcurl-dev

sudo apt-get install libcurl4-openssl-dev

libboost-thread-dev

sudo apt-get install libboost-thread-dev

Packages

  1. Open R Console(Execute R directly from shell)
  2. Run followign R commands:

    options(repos=structure(c(CRAN="http://cran.cs.pu.edu.tw")))
    install.packages("Rcpp")
    install.packages("devtools")
    install.packages("foreach")
    install.packages("rredis")
    install.packages("doRedis")
    library(devtools)
    install_bitbucket("LargeScaleLogisticRegression", "wush978")
    
  3. Close R. Install git. Clone the repository of https://bitbucket.org/wush978/largescalelogisticregression.git

  4. Switch to the largescalelogisticregressiontests direcotory

  5. Execute tests/lr_doRedis.test.R.

    1. Run from shell

      Rscript tests/lr_doRedis.test.R
      
    2. Run from R Console. Open R console and run:

      source("tests/lr_doRedis.test.R")
      
  6. Cleaning

    1. Clean the radis-server:

      redis-cli "flushdb"
      
    2. Kill R process of slaves:

      kill `pidof R`