bvhar 2.1.2.9016
C++ headers by bvhar package
Loading...
Searching...
No Matches
Overview

This package provides public C++ header. It is used in both R and Python.

For R package developers

R package developers can use the headers through Rcpp. You can use these by writing in your R package DESCRIPTION.

LinkingTo:
BH,
Rcpp,
RcppEigen,
RcppSpdlog,
RcppThread,
bvhar

Also, you can use in your single C++ source:

// [[Rcpp::depends(BH, RcppEigen, RcppSpdlog, RcppThread, bvhar)]]
// [[Rcpp::plugins(bvhar)]]
// [[Rcpp::export]]
// Your C++ code

You need to add plugins attribute because the header in this package should define USE_RCPP macro. Or you can use instead:

Sys.setenv("PKG_CPPFLAGS" = "-DUSE_RCPP")

If the USE_RCPP macro is not defined, the headers are compiled for pybind11 of Python.