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:

  • 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):

  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:


The following steps are obsolete for versions >= 2.0

To gain full functionality of the Morpho R-package (using sliding landmarks, importing meshfiles other than ascii ply files, etc), it is required to download and install the latest version of the command line programms.

  1. Download the binaries appropriate for your OS from

  2. Install files:

    • Windows: simply double click trimesh-tools.msi and follow installer instructions.
    • OSX:
      1. extract the .tgz archive and copy these files e.g. to /usr/bin/
      2. you also need the QT libraries QtGui and QtCore installed. If you don't know how to do that, you can download the complete QT libraries from and install them on your machine. Since version 0.2.6-1 not anymore.
    • Linux:
      • Debian/Ubuntu: Please use my PPA. The package is called trimesh-tools.
      • All other systems: Compile the binaries yourself (see below).
  3. Test if the system finds the files (necessary for Morpho).

    1. open a command line terminal
    2. type ply2ascii
    3. if everything is alright, you see a help message.
Compilation of command line tools:
  1. Install QT-SDK (
  2. make sure to have C++ compilers installed
  3. Get the latest sources
    1. Download the tarball (aux.vcggapps.src[date].tar.gz) from and extract it.
    2. or use git to obtain the latest snapshot

      git clone git:// trimesh-cxx
    cd trimesh-cxx

The compiled binaries are found in the folder trimesh-cxx/bin which is created during the compilation process.

Copy these binaries to any convenient directory and make sure that the directory is added to the system's PATH variable.