Using Rgin C++ libraries

Héctor Climente-González

2018-10-30

Use

To use these libraries, the third party package developer needs to (1) discover the appropriate header files when their package is built, and (2) link in the libraries. Note that in order to link correctly across platforms your package must provide both the respective src/Makevars and src/Makevars.win files.

Discover header files

To discover appropriate header files at package installation time, add

LinkingTo: Rgin

to the DESCRIPTION file, and reference the relevant include files as, for instance,

#include "gin/bam.h"

The content of the include files can be found in the Rgin source (under src/include/gin) or at their installed location.