From 7f6212a4ff8df25e23280cb2ed446625b0bcc74a Mon Sep 17 00:00:00 2001 From: Davis Vaughan Date: Fri, 1 Dec 2023 13:21:55 -0500 Subject: [PATCH] Fixup some typos --- vignettes/cpp11.Rmd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vignettes/cpp11.Rmd b/vignettes/cpp11.Rmd index 0047a354..878ff673 100644 --- a/vignettes/cpp11.Rmd +++ b/vignettes/cpp11.Rmd @@ -1104,9 +1104,9 @@ There are several benefits of moving code from a stand-alone C++ source file to To add `cpp11` to an existing package first put your C++ files in the `src/` directory of your package. -Then the easiest way to configure everything is to call `usethis::use_cpp()`. Alternatively: +Then the easiest way to configure everything is to call `usethis::use_cpp11()`. Alternatively: -* The this to your `DESCRIPTION` file: +* Add this to your `DESCRIPTION` file: ```yaml LinkingTo: cpp11 @@ -1120,7 +1120,7 @@ Then the easiest way to configure everything is to call `usethis::use_cpp()`. Al * You'll then need to run [`devtools::document()`](https://devtools.r-lib.org/reference/document.html) to update your `NAMESPACE` file to include the `useDynLib` statement. -If you don't use `devtools::load_all()`, you'll also need to run `cpp11::cpp_register()` before building the package.. +If you don't use `devtools::load_all()`, you'll also need to run `cpp11::cpp_register()` before building the package. This function scans the C++ files for `[[cpp11::register]]` attributes and generates the binding code required to make the functions available in R. Re-run `cpp11::cpp_register()` whenever functions are added, removed, or have their signatures changed.