Then from http://tata-box-blog.blogspot.ca/2012/03/install-r-2142-in-debian-squeeze.html
First, open a Terminal and open the sources.list file: $ gksudo gedit /etc/apt/sources.list
Then, add these lines at the bottom of the file (Note, I use the UCLA server, but this can be easily changed taking a look here for the mirrors):
## R BACKPORTS deb http://cran.stat.ucla.edu/bin/linux/debian squeeze-cran/ #deb-src http://cran.stat.ucla.edu/bin/linux/debian squeeze-cran/ To install Rstudio download Rstudio deb file from http://www.rstudio.com/ide/download/desktop Install with deb http://linux.about.com/od/ubuntu_doc/a/ubudg21t2.htm
Damn, I really want to get RCPP and RInside working on my Netbeans for WIndows with Cygwin but..
I get these errors in my build attempt within Nebeans:
## -*- mode: makefile; tab-width: 8; -*- ## ## Simple Makefile for Windows
## This version is fairly directly derived from the Unix versions ## You may have to set R_HOME manually if this does not work ## It requires Rtools in the path — as does all R package building #R_HOME := $(shell R RHOME | sed -e “s|\\\\|\/|g”) R_HOME := “/cygdrive/c/PROGRA~1/R/R-214~1.1″
## You may have to set this to one of the two values below to enforce a particular ## architecture in case the autodetection in the next line does not work correctly R_ARCH := –arch $(shell echo ‘cat(.Platform$$r_arch)’ | R –vanilla –slave) ##R_ARCH := –arch i386 ##R_ARCH := –arch x64
## You may need to set R_LIBS_USER if Rcpp or RInside are installed where R does not see them by default #R_LIBS_USER := “C:/myRstuff/library”
(Note the strange MinGW path but I am not using that)
cygwin warning:
MS-DOS style path detected: C:\PROGRA~1\R\R-214~1.1/bin/config.sh
Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-214~1.1/bin/config.sh
CYGWIN environment variable option “nodosfilewarning” turns off this warning.
Consult the user’s guide for more details about POSIX paths:
cygwin warning:
MS-DOS style path detected: C:\PROGRA~1\R\R-214~1.1/bin/config.sh
Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-214~1.1/bin/config.sh
CYGWIN environment variable option “nodosfilewarning” turns off this warning.
Consult the user’s guide for more details about POSIX paths:
How to install R with RCpp RInside for C++ HFT with multithreading capabilities for parallelizing with Open MPI in Ubuntu Linux
To get RCpp and RInside running in your Ubuntu Linux environment
Install RStudio to manage the installation of your R packages which is the lazy person’s way of doing it. Also, ensure you have the latest R version by doing:
Once the tarball is expanded in your Linux environment, navigate to the examples standard to make all the examples. Again, you will need the RCpp and RInside R packages available for the build process. Other R packages may be needed as your run the many examples.
To run the RInside examples with the OPen MPI for parallelizing examples, install Open MPI following apt-get instructions at:
The navigate to the RInside example mpi and do a make. Run the samples and watch your jaw drop on the potential of R and C++ for HFT in a multithreaded environment.