Make sure to work with the latest version of R and install dependencies (type the following commands into your R terminal):
Also required are the packages 'Matrix' and 'parallel' which usually are already installed as R's recommended packages.
Installation command from within R:
check if the package can be loaded:
load package: library(Morpho)
install devtools from within R (Ubuntu/Debian users will have to install libcurl4-gnutls-dev beforehand):
Install build environment
In R run the command:
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.
Download the binaries appropriate for your OS from https://sourceforge.net/projects/morpho-rpackage/files/Auxiliaries/Binaries/
Test if the system finds the files (necessary for Morpho).
or use git to obtain the latest snapshot
git clone git://git.code.sf.net/p/morpho-rpackage/trimesh-cxx trimesh-cxx
cd trimesh-cxx qmake make
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.