[Rcpp-devel] Rcpp attributes, default values for enums
Gábor Csárdi
csardi.gabor at gmail.com
Sat Mar 1 05:32:18 CET 2014
Hi All,
it seems that this is currently not supported.
For this:
// [[Rcpp::export("L_tree")]]
NumericMatrix rogdf_tree_layout(GraphAttributes graph,
double siblingDistance=20, double subtreeDistance=20,
double levelDistance=50, double treeDistance=50,
bool orthogonalLayout=false,
Orientation orientation=topToBottom,
TreeLayout::RootSelectionType selectRoot=TreeLayout::rootIsSource) {
...
where the last two arguments are enums, I get:
Warning messages:
1: Unable to parse C++ default value 'topToBottom' for argument orientation
of function rogdf_tree_layout
2: Unable to parse C++ default value 'TreeLayout::rootIsSource' for
argument selectRoot of function rogdf_tree_layout
and there are no default values in the generated R code.
Is there a workaround? Any chance of adding support for it? How hard do you
think it is to support it?
Thanks, Best,
Gabor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20140228/ddd71347/attachment-0001.html>
More information about the Rcpp-devel
mailing list