Skip to content

Installation instructions

zarquon42b edited this page Feb 10, 2014 · 21 revisions

####Installation of Morpho

Installation of the R-package Morpho (latest release):
  1. Make sure to work with the latest version of R and install dependencies (type the following commands into your R terminal):

    install.packages(c("rgl", "Rvcg","doParallel","colorRamps","yaImpute","RcppArmadillo"))

Also required are the packages 'Matrix' and 'parallel' which usually are already installed as R's recommended packages.

  • Download the version suitable for your OS sourceforge or github. Either the compiled package (for Windows and OS X) or the source tarball (Linux).

  • Installation command from within R:

      install.packages("Path_to_downloaded_package_Morpho\[Version_OS\]",repos=NULL)
    
  •  check if the package can be loaded:
      
      load package: library(Morpho)
    
Installation of the R-package Morpho (latest development code) using devtools:
  1. install devtools from within R (Ubuntu/Debian users will have to install libcurl4-gnutls-dev beforehand):

     install.packages("devtools")
    
  2. Install build environment

    • Windows: Install latest version of Rtools During installation of Rtools make sure to install the toolchain, and to select "Edit the system path" (and confirming the installers suggestions).
    • OSX: Install XCODE and gfortran
    • Ubuntu/Debian: make sure you have package r-base-dev installed.
  3. In R run the command:

     require(devtools)
     install_github("zarquon42b/Morpho")