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?