Rcpp icon indicating copy to clipboard operation
Rcpp copied to clipboard

.factory doc string not printed to sceen

Open ghost opened this issue 1 year ago • 2 comments
trafficstars

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

ghost avatar Jul 28 '24 07:07 ghost

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.

eddelbuettel avatar Jul 28 '24 12:07 eddelbuettel

Thank you for the quick response.

I'll have a search.

ghost avatar Jul 28 '24 12:07 ghost

This issue is stale (365 days without activity) and will be closed in 31 days unless new activity is seen. Please feel free to re-open it is still a concern, possibly with additional data.

github-actions[bot] avatar Aug 02 '25 03:08 github-actions[bot]