Skip to content

Commit 122be10

Browse files
committed
Remove section about deprecated loadRcppModules()
1 parent d74c691 commit 122be10

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

vignettes/rmd/Rcpp-modules.Rmd

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,28 +1236,6 @@ The `loadModule` function has an argument `what` to control which objects are
12361236
exposed in the package namespace. The special value `TRUE` means that all
12371237
objects are exposed.
12381238

1239-
### Deprecated legacy method using loadRcppModules
1240-
1241-
Prior to release 0.9.11, where `loadModule` was introduced,
1242-
loading all functions and classes from a module
1243-
into a package namespace was achieved using the `loadRcppModules` function
1244-
within the `.onLoad` body.
1245-
1246-
```{r, eval=FALSE}
1247-
.onLoad <- function(libname, pkgname) {
1248-
loadRcppModules()
1249-
}
1250-
```
1251-
1252-
This will look in the package's `DESCRIPTION` file for the `RcppModules`
1253-
field, load each declared module and populate their contents into the
1254-
package's namespace. For example, a package defining modules
1255-
`yada`, `stdVector`, `NumEx` would have this declaration:
1256-
1257-
```
1258-
RcppModules: yada, stdVector, NumEx
1259-
```
1260-
12611239
### Just expose the module
12621240

12631241
Alternatively to exposing a module's content via `loadModule`,

0 commit comments

Comments
 (0)