Installation

This program may be compiled as a shared library or as stand-alone python and R libraries.

C++

To build the shared library, ninja(s) are needed.

pip install cmake ninja

The following dependencies are included as submodules:

  1. Armadillo http://arma.sourceforge.net/docs.html

  2. Catch2 (unit tests only) https://github.com/catchorg/Catch2/blob/master/docs/Readme.md#top

  3. pybind11++ (python bindings only) https://pybind11.readthedocs.io

  4. spdlog (logging) https://github.com/gabime/spdlog

Use make to install the headers and shared libraries (here the destination is the /opt/ directory)

make install INSTALL_DIR=/opt

R

The R package can be built and installed directy from CRAN

install.packages("targeted")

or installed from source

make r

python

The python package can be installed directly from PyPi

pip install targeted

Note

Presently binary wheels are available for Linux systems and Mac OS X running Python>=3.6. Windows installations must be built from source.

or installed from source

make py