Version 14 (modified by pbaumann, 21 months ago) (diff)


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 install
  • Start the rasdaman system, check that all is working fine:
    rasql -q "select r from RAS_COLLECTIONNAMES as r"
  • Check from within an R session that everything works:
    > 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