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()

usethis documentation built on Sept. 11, 2024, 5:29 p.m.