Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.factory doc string not printed to sceen #1321

Open
ghost opened this issue Jul 28, 2024 · 2 comments
Open

.factory doc string not printed to sceen #1321

ghost opened this issue Jul 28, 2024 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 28, 2024

Hi,

say for module:

RCPP_MODULE(XYZ){
  using namespace Rcpp;
  class_<XYZ<double>>("XYZ")
    .factory<Rcpp::IntegerMatrix>(&XYZ_constructor_1,"from integer matrix constructor",validate_matrix)
    .method("nrow",&XYZ<double>::nrow,"returns #rows");
}

once compiled and loaded via library(XYZ)

command XYZ prints to screen an XYZ overview containing the .method and it's doc string, but neither the .factory nor it's doc string.

Not sure whether I am doing anything wrong or whether this is a bug.

Any idea how to get the factory method and it's doc string printed to screen?

Thanks

@eddelbuettel
Copy link
Member

eddelbuettel commented Jul 28, 2024

I am not sure, I would recommend comparing to other packages using Modules. I just looked at one of mine and it does not use .factory (but .constructor). This may be a less-well support part of Modules.

@ghost
Copy link
Author

ghost commented Jul 28, 2024

Thank you for the quick response.

I'll have a search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant