Skip to content

Commit 6888868

Browse files
committed
improved (older) modules test files
1 parent 07389e0 commit 6888868

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
useDynLib(testRcppModule)
22
exportPattern("^[[:alpha:]]+")
3-
import(Rcpp)
3+
import(Rcpp,methods)
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

22
rcpp_hello_world <- function(){
3-
.Call( "rcpp_hello_world", PACKAGE = "testRcppModule" )
3+
.Call( "rcpp_hello_world", PACKAGE = "testRcppModule" )
44
}
55

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
NAMESPACE <- environment()
2-
3-
.onLoad <- function(libname, pkgname){
4-
loadRcppModules()
5-
}
1+
#
2+
#.onLoad <- function(libname, pkgname){
3+
# loadRcppModules()
4+
#}
65

76
## For R 2.15.1 and later this also works. Note that calling loadModule() triggers
87
## a load action, so this does not have to be placed in .onLoad() or evalqOnLoad().
9-
#loadModule("NumEx", TRUE)
10-
#loadModule("yada", TRUE)
11-
#loadModule("stdVector", TRUE)
8+
loadModule("NumEx", TRUE)
9+
loadModule("yada", TRUE)
10+
loadModule("stdVector", TRUE)
1211

0 commit comments

Comments
 (0)