[R-pkg-devel] Virtual C++ functions

2023-11-16 Thread Michael Meyer via R-package-devel
Thanks for all replies. I think the idea of a callback and link to RcppXPtrUtils is pointing me in the right direction. Michael Meyer [[alternative HTML version deleted]] __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman

[R-pkg-devel] Virtual C++ functions

2023-11-15 Thread Michael Meyer via R-package-devel
Greetings, Suppose I wanted to develop a package with C++ code that contains virtual functions which the package user should define.It's assumed that evaluation is expensive so we do not want to define these in R and then call these R-functions from C++. Is this a reasonable idea with a standard