Function to check binary compatibility for R packages implementing JAGS modules, as well as retrieving the necessary compile flags to link to the same version of JAGS that rjags itself uses.
pkg.compile.flags(type = c("ALL", "JAGS_ROOT", "JAGS_VERSION", "RJAGS_VERSION",
"CPPFLAGS", "CXXFLAGS", "LIBS"), print=type!="ALL")The function prints and returns (invisibly) one of the following character strings, depending on the type requested:
A list of all the values below (default).
The location of the JAGS installation that rjags is linked to.
The version of JAGS linked to.
The version of the rjags package.
The required PKG_CPPFLAGS.
The required PKG_CXXFLAGS (may be empty).
The required PKG_LIBS.
the compile flag to display (see value)
by default the value is printed using cat (for easier use in Makevars files) except when the type is ALL
Matt Denwood
This function is provided for authors of R packages implementing JAGS modules
for use within the Makevars(.win/ucrt) files in order to ensure that these
packages are binary compatible with rjags. See also load.pkg.module