Post date: Jul 02, 2019 5:58:46 AM
warbleR is an R package for analysis of animal acoustic signature.
Installing warbleR is easy on macOS and Windows. In R command prompt:
> install.packages("warbleR")
More steps in Ubuntu because warbleR has many unresolved dependencies.
1) Install mvtnorm
Go to https://cran.r-project.org/src/contrib/Archive/mvtnorm/
Download the latest compatible version. Version 1.0.8 works with R 3.4.4; there are never versions but they require R 3.5. https://cran.r-project.org/src/contrib/Archive/mvtnorm/mvtnorm_1.0-8.tar.gz
At the shell give this command:
$ sudo R CMD INSTALL mvtnorm_1.0-8.tar.gz
2) Install soundgen
Go to https://cran.r-project.org/src/contrib/Archive/soundgen/
Download the latest compatiable version. Version 1.3.2 works with R 3.4.4 https://cran.r-project.org/src/contrib/Archive/soundgen/soundgen_1.3.2.tar.gz
At the shell, give
$ sudo R CMD INSTALL soundgen_1.3.2.tar.gz
3) Install RCurl
Download https://cran.r-project.org/src/contrib/Archive/RCurl/RCurl_1.95-4.11.tar.gz
At the shell, give
$ sudo apt install libcurl4-openssl-dev
$ sudo R CMD INSTALL RCurl_1.95-4.11.tar.gz
4) Install FFTW3 (don't skip this step)
Our R package will require a shared library so we will be installing fftw3 from source:
$ wget http://www.fftw.org/fftw-3.3.8.tar.gz
$ tar -xzf fftw-3.3.8.tar.gz
$ cd fftw-3.3.8
$ ./configure --enable-shared
$ make
$ sudo make install
5) Install fftw. It's a wrapper around the fastest fourier transform in the west (FFTW) library.
Download https://cran.r-project.org/src/contrib/fftw_1.0-5.tar.gz
Give the command:
$ sudo R CMD INSTALL fftw_1.0-5.tar.gz
6) Finally, install warbleR from inside R:
> install.packages("warbleR")
I'm deep indebted to Jonathan Callahan:
Installing FFTW3 and the ‘fftw’ R package :http://mazamascience.com/WorkingWithData/?p=1439
Using R — Package Installation Problems : http://mazamascience.com/WorkingWithData/?p=1185