@@ -53,13 +53,13 @@ loadRcppClass <- function(Class, CppClass = Class,
53
53
}
54
54
mod <- loadModule(module , NULL , env = where , loadNow = TRUE )
55
55
storage <- get(" storage" , envir = as.environment(mod ))
56
- if (exists(CppClass , envir = storage , inherits = FALSE )) {
57
- cppclassinfo <- get(CppClass , envir = storage )
56
+ if (exists(Class , envir = storage , inherits = FALSE )) {
57
+ cppclassinfo <- get(Class , envir = storage )
58
58
if (! is(cppclassinfo , " C++Class" ))
59
- stop(gettextf(" Object \" %s\" in module \" %s\" is not a C++ class description" , CppClass , module ))
59
+ stop(gettextf(" Object \" %s\" in module \" %s\" is not a C++ class description" , Class , module ))
60
60
}
61
61
else
62
- stop(gettextf(" No object \" %s\" in module \" %s\" " , CppClass , module ))
62
+ stop(gettextf(" No object \" %s\" in module \" %s\" " , Class , module ))
63
63
allmethods <- .makeCppMethods(methods , cppclassinfo , where )
64
64
allfields <- .makeCppFields(fields , cppclassinfo , where )
65
65
value <- setRefClass(Class , fields = allfields ,
0 commit comments