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

20-length limit #435

Closed
kn1g opened this issue Feb 16, 2016 · 5 comments

Comments

@kn1g
Copy link

commented Feb 16, 2016

Hi, does the 20-length limit for lists and dataframe has a deeper meaning?
Is it somehow possible to make an elegant workaround or can I somehow edit the code easily?
I need a dataframe with way more columns...

Thanks and best regards
Nico

@eddelbuettel

This comment has been minimized.

Copy link
Member

commented Feb 16, 2016

Nico,

That's a FAQ, but I no longer remember where we gave the best answer: rcpp-devel, stackoverflow or here. So you may have to look.

In short, these are macro-generated and yes there is a cost to having them. The usual answer is that you can always nest: have an outer list of 20, and each of those can have 20 ...

@thirdwing

This comment has been minimized.

@kn1g

This comment has been minimized.

Copy link
Author

commented Feb 17, 2016

Thanks Dirk and thanks thirdwing. The link was great!
In this context I read about Rcpp11 the first time. I will try to use Rcpp11 in the future.
But for now I will just nest it in lists as a shortcut.
I really appreciate all the support, especially when Dirk is answering nearly in real-time questions on all the different platforms.
Thanks an best regards
Nico

@kn1g kn1g closed this Feb 17, 2016
@eddelbuettel

This comment has been minimized.

Copy link
Member

commented Feb 17, 2016

It is a good question, and I will try to add it to the Rcpp FAQ. As for Rcpp11 vs Rcpp: you may want to compare the rate of more recent releases and commits between them; Rcpp11 has not seen that many updates of late. Which may of course change at some point... In any event, you can use C++11 and C++14 with Rcpp just as well (but not [yet] always for CRAN uploads also aiming at Windows etc pp).

eddelbuettel added a commit that referenced this issue Feb 17, 2016
@dcdillon

This comment has been minimized.

Copy link
Contributor

commented Feb 17, 2016

Would it be possible to do something with variadic templates for this IF it's in C++11 or greater when compiled?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.