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
Closed

20-length limit #435

kn1g opened this issue Feb 16, 2016 · 5 comments

Comments

@kn1g
Copy link

kn1g 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
Copy link
Member

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
Copy link
Member

@kn1g
Copy link
Author

kn1g 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 as completed Feb 17, 2016
@eddelbuettel
Copy link
Member

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).

@dcdillon
Copy link
Contributor

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants