wiki:RRasdaman

Installation of RRasdaman

RRasdaman is an R package providing database interface for rasdaman. This manual describes the installation process of the package.

  • Install R:
    sudo apt-get install r-base r-base-dev
    
  • Install needed R packages rJava and testthat from R prompt:
    R --quiet 
    > install.packages(c("rJava", "testthat"))
    
    • In case an error "/usr/bin/ld: cannot find -lpcre (-llzma, -lbz2)" appears, install the following system packages needed for rJava:
      sudo apt-get install liblzma-dev libbz2-dev libpcre3-dev
      
  • Get rasdaman code (if not yet) and provide --enable-r flag to the configure script (see wiki:InstallFromSource for details on how to configure rasdaman generation):
    ./configure --enable-r
    
  • Build and install the package
    cd applications/RRasdaman
    make
    make install
    
  • Start the rasdaman system, check that all is working fine:
    start_rasdaman.sh
    rasql -q "select r from RAS_COLLECTIONNAMES as r"
    
  • Check from within an R session that everything works:
    R
    > library(RRasdaman)
    > conn <- dbConnect(Rasdaman())
    > dbListCollections(conn)
     [1] "mr"                         "rgb"       
     [3] "mean_summer_airtemp"        "eobstest"                  
    > dbDisconnect(conn)
    
  • Optionally, run the package tests. This also requires the rasdaman system up and running.
    cd applications/RRasdaman
    make check
    
Last modified 15 months ago Last modified on Dec 22, 2015 3:03:01 PM