use_rcpp: Use C, C++, RcppArmadillo, or RcppEigen

Description Usage Arguments Details

View source: R/rcpp.R

Description

Adds infrastructure commonly needed when using compiled code:

Usage

1
2
3
4
5
6
7

Arguments

name

If supplied, creates and opens src/name.{c,cpp}.

Details

When using compiled code, please note that there must be at least one file inside the src/ directory prior to building the package. As a result, if an empty src/ directory is detected, either a .c or .cpp file will be added.


usethis documentation built on Oct. 25, 2021, 9:06 a.m.