Blog‎ > ‎

Installing WarbleR Package

posted Jul 1, 2019, 10:58 PM by MUHAMMAD MUN`IM AHMAD ZABIDI   [ updated Jul 2, 2019, 12:45 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

  • At the shell give this command:
$ sudo R CMD INSTALL mvtnorm_1.0-8.tar.gz

2) Install soundgen
$ sudo R CMD INSTALL soundgen_1.3.2.tar.gz

3) Install RCurl
$ 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
$ 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.
$  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: