wiki:RRasdaman

Version 8 (modified by pbaumann, 23 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"))
    
    1. 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:
    $ git clone git://rasdaman.org/rasdaman.git
    $ cd rasdaman
    $ autoreconf -fi
    $ ./configure --enable-r
    
    Please refer to wiki:Install? and wiki:RasdamanQuickInstall for more instructions on how to install rasdaman.
  • Build and install the package
    $ cd applications/RRasdaman
    $ make
    $ make install
    
  • Check from R session that everything works (requires rasdaman system started):
    $ R
    > 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