File tree Expand file tree Collapse file tree 2 files changed +4
-18
lines changed
tinytest/testRcppModule/R Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Original file line number Diff line number Diff line change 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().
125loadModule(" NumEx" , TRUE )
136loadModule(" yada" , TRUE )
147loadModule(" stdVector" , TRUE )
15-
16-
Original file line number Diff line number Diff line change 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().
84loadModule(" RcppModuleNumEx" , TRUE )
95loadModule(" RcppModuleWorld" , TRUE )
106loadModule(" stdVector" , TRUE )
11-
You can’t perform that action at this time.
0 commit comments