sudo apt-get install r-base r-base-dev
sudo apt-get install redis-server
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install libboost-thread-dev
R directly from shell)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")
Close R. Install git. Clone the repository of https://bitbucket.org/wush978/largescalelogisticregression.git
Switch to the largescalelogisticregressiontests direcotory
Execute tests/lr_doRedis.test.R.
Run from shell
Rscript tests/lr_doRedis.test.R
Run from R Console. Open R console and run:
source("tests/lr_doRedis.test.R")
Cleaning
Clean the radis-server:
redis-cli "flushdb"
Kill R process of slaves:
kill `pidof R`