Version 12 (modified by dmisev, 22 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.

  • First of all, you need R installed on your machine:
    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 if 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:
    ./configure --enable-r
    Please refer to wiki:Install? for more information on how to install rasdaman.
  • Build and install the package
    cd applications/RRasdaman
    make install
  • Check from R session that everything works (requires rasdaman system started):
    > library(RRasdaman)
    > conn <- dbConnect(Rasdaman())
    > dbListCollections(conn)
     [1] "mr"                         "rgb"       
     [3] "mean_summer_airtemp"        "eobstest"                  
    > dbDisconnect(conn)
  • Optionally you can run the package tests. This also requires the rasdaman system up and running.
    cd applications/RRasdaman
    make check