RcppR6
RcppR6 copied to clipboard
Code-generation wrapping C++ classes as R6 classes
Or some other way that allows this approach: ``` x
Should be straightforward to implement nontrivial constructors to wrap things that absolutely do need to have constructors.
Shouldn't be hard, just needs a decent use case.
Hi Rich, I just try to put RcppR6 into my own packages. This package is really inseresting! Reading the code of RcppR6, I just learned how to use XPtr in...
Should be easy to configure.
As with modules, this is _hard_ to get right. See package XML, which has `xmlSerializeHook` and `xmlDeserializeHook` to help.
This will be useful where objects are created from various other functions, but we never want to build them from R. Probably the simplest way to do this would be...
Perhaps instead of maintaining a YAML file separately, one could include it as a comment block alongside the class definition. For example: ``` cpp /** R6 * module: circle *...