Skip to content

Commit

Permalink
Fixup some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
DavisVaughan committed Dec 1, 2023
1 parent 9f5a9f8 commit 7f6212a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vignettes/cpp11.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.

Expand Down

0 comments on commit 7f6212a

Please sign in to comment.