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

View source: R/rcpp.R

use_rcppR Documentation

Use C, C++, RcppArmadillo, or RcppEigen

Description

Adds infrastructure commonly needed when using compiled code:

  • Creates ⁠src/⁠

  • Adds required packages to DESCRIPTION

  • May create an initial placeholder .c or .cpp file

  • Creates Makevars and Makevars.win files (use_rcpp_armadillo() only)

Usage

use_rcpp(name = NULL)

use_rcpp_armadillo(name = NULL)

use_rcpp_eigen(name = NULL)

use_c(name = NULL)

Arguments

name

Either a string giving a file name (without directory) or NULL to take the name from the currently open file in RStudio.


r-lib/usethis documentation built on Nov. 28, 2024, 7:11 a.m.