Skip to content

Commit b6c674f

Browse files
committed
Remove commented-out mentions of loadRcppModules()
1 parent 122be10 commit b6c674f

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

inst/skeleton/zzz.R

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11

2-
## Up until R 2.15.0, the require("methods") is needed but (now)
3-
## triggers an warning from R CMD check
4-
#.onLoad <- function(libname, pkgname){
5-
# #require("methods") ## needed with R <= 2.15.0
6-
# loadRcppModules()
7-
#}
8-
9-
10-
## For R 2.15.1 and later this also works. Note that calling loadModule() triggers
2+
## For R 2.15.1 and later the approach shown here works (as opposed to the now removed
3+
## and long-deprecated `loadRcppModules()`. Note that calling loadModule() triggers
114
## a load action, so this does not have to be placed in .onLoad() or evalqOnLoad().
125
loadModule("NumEx", TRUE)
136
loadModule("yada", TRUE)
147
loadModule("stdVector", TRUE)
15-
16-
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
#
2-
#.onLoad <- function(libname, pkgname){
3-
# loadRcppModules()
4-
#}
5-
6-
## For R 2.15.1 and later this also works. Note that calling loadModule() triggers
1+
## For R 2.15.1 and later the approach shown here works (as opposed to the now removed
2+
## and long-deprecated `loadRcppModules()`. Note that calling loadModule() triggers
73
## a load action, so this does not have to be placed in .onLoad() or evalqOnLoad().
84
loadModule("RcppModuleNumEx", TRUE)
95
loadModule("RcppModuleWorld", TRUE)
106
loadModule("stdVector", TRUE)
11-

0 commit comments

Comments
 (0)