Rcpp.plugin.maker: Facilitating making package plugins

Description Usage Arguments Value

View source: R/inline.R

Description

This function helps packages making inline plugins.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
Rcpp.plugin.maker(
  include.before = "", 
  include.after = "", 
  LinkingTo = unique(c(package, "Rcpp98")), 
  Depends = unique(c(package, "Rcpp98")), 
  libs = "", 
  Makevars = NULL, 
  Makevars.win = NULL, 
  package = "Rcpp98"
)

Arguments

include.before

Code to be included before the Rcpp.h file

include.after

Code to be included after the Rcpp.h file

LinkingTo

Packages to be added to the LinkingTo field

Depends

Packages to be added to the Depends field

libs

library flags

Makevars

content for a Makevars file, or NULL

Makevars.win

content for a Makevars.win file, or NULL

package

The package this plugin is for.

Value

A function that is suitable as a plugin. See for example the RcppArmadillo package that uses this to create its inline plugin.


romainfrancois/Rcpp98 documentation built on May 27, 2019, 1:48 p.m.