I have seen a couple of ways of creating an instance of a C++ class
exported in a module

mod <- Module("myMod", "myPackage")
cls <- mod$myClass
inst <- cls$new(constructorArgs)

and

inst <- new(mod$myClass, constructorArgs)

Is one of these the preferred way?
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to