Skip to content

Commit 1b4a29e

Browse files
authored
Merge pull request #910 from rstub/patch-1
Fix typo EXPORT -> EXPOSED
2 parents 8166c3c + 084c95a commit 1b4a29e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vignettes/Rcpp-extending.Rmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,15 +202,15 @@ can appear after the `Rcpp.h` file is included, and therefore take
202202
full advantage of the \pkg{Rcpp} type system.
203203

204204
Another non-intrusive option is to expose an external pointer. The macro
205-
`RCPP_EXPORT_WRAP` provides an easy way to expose a \proglang{C++} class
205+
`RCPP_EXPOSED_WRAP` provides an easy way to expose a \proglang{C++} class
206206
to \proglang{R} as an external pointer. It can be used instead of specializing
207207
`Rcpp::wrap`, and should not be used simultaneously.
208208

209209
```{Rcpp, eval = FALSE}
210210
#include RcppCommon.h
211211
#include foobar.h
212212
213-
RCPP_EXPORT_WRAP(Bar);
213+
RCPP_EXPOSED_WRAP(Bar)
214214
```
215215

216216
## Templates and partial specialization
@@ -292,7 +292,7 @@ namespace Rcpp {
292292
```
293293

294294
Furthermore, another non-intrusive option is to opt for sharing an R
295-
external pointer. The macro `RCPP_EXPORT_AS` provides an easy way to
295+
external pointer. The macro `RCPP_EXPOSED_AS` provides an easy way to
296296
extend `Rcpp::as` to expose \proglang{R} external pointers to
297297
\proglang{C++}. It can be used instead of specializing `Rcpp::as`, and
298298
should not be used simultaneously.
@@ -301,7 +301,7 @@ should not be used simultaneously.
301301
#include RcppCommon.h
302302
#include foobar.h
303303
304-
RCPP_EXPORT_AS(Bar);
304+
RCPP_EXPOSED_AS(Bar)
305305
```
306306

307307
With this being said, there is one additional macro that can be used to

0 commit comments

Comments
 (0)