plugin: Code to use the hesim package inline. Not directly called by...

inlineCxxPluginR Documentation

Code to use the hesim package inline. Not directly called by the user.

Description

Code to use the hesim package inline. Not directly called by the user.

Usage

inlineCxxPlugin(...)

Arguments

...

arguments

Examples

 ## Not run: 
  library(Rcpp)
  sourceCpp(code="
  // [[Rcpp::depends(hesim)]]
  // [[Rcpp::depends(RcppArmadillo)]]
  #include <hesim.h>
  // [[Rcpp::export]]
  double test_inline_gengamma(double mu, double sigma, double Q) {
    hesim::stats::gengamma gg(mu, sigma, Q);
    return gg.random();
  }")
  set.seed(12345)
  test_inline_gengamma(1.0, 1.0, 1.0)
  
## End(Not run)
  

hesim documentation built on Nov. 5, 2025, 6:52 p.m.