use_cpp11: Use C++ via the cpp11 package

View source: R/cpp11.R

use_cpp11R Documentation

Use C++ via the cpp11 package

Description

Adds infrastructure needed to use the cpp11 package, a header-only R package that helps R package developers handle R objects with C++ code:

  • Creates ⁠src/⁠

  • Adds cpp11 to DESCRIPTION

  • Creates src/code.cpp, an initial placeholder .cpp file

Usage

use_cpp11()

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