Re: [Rcpp-devel] Limit of 20

2024-02-29 Thread Balasubramanian Narasimhan
: [Rcpp-devel] Limit of 20 For those interested, the few other instances can be found by looking under the inst/include/Rcpp/generated/ folder: https://github.com/RcppCore/Rcpp/tree/master/inst/include/Rcpp/generated In the case of Vector__create.h, one would need to do some varidic templating to

Re: [Rcpp-devel] Limit of 20

2024-02-29 Thread Balasubramanian Narasimhan
behalf of Balamuta, James Joseph Sent: Wednesday, December 15, 2021 12:10:12 PM To: rcpp-devel@lists.r-forge.r-project.org Subject: Re: [Rcpp-devel] Limit of 20 For those interested, the few other instances can be found by looking under the inst/include/Rcpp/generated/ folder: https

Re: [Rcpp-devel] Limit of 20

2021-12-16 Thread Dirk Eddelbuettel
On 16 December 2021 at 06:38, Joseph Park wrote: | As R itself has no practical limit, and, large, ugly parameter lists are | sometimes unavoidable in API's, I respectfully request consideration to | relax the limit as design and resources allow. Please keep in mind that this project is provided

Re: [Rcpp-devel] Limit of 20

2021-12-15 Thread Dirk Eddelbuettel
On 15 December 2021 at 20:10, Balamuta, James Joseph wrote: | For those interested, the few other instances can be found by looking under the inst/include/Rcpp/generated/ folder: | | https://github.com/RcppCore/Rcpp/tree/master/inst/include/Rcpp/generated Yup, I mentioned the dir, but thanks f

Re: [Rcpp-devel] Limit of 20

2021-12-15 Thread Balamuta, James Joseph
For those interested, the few other instances can be found by looking under the inst/include/Rcpp/generated/ folder: https://github.com/RcppCore/Rcpp/tree/master/inst/include/Rcpp/generated In the case of Vector__create.h, one would need to do some varidic templating to abstract away from the

Re: [Rcpp-devel] Limit of 20

2021-12-15 Thread Dirk Eddelbuettel
On 15 December 2021 at 10:19, Kevin Ushey wrote: | I assume we're talking about Vector::create()? Anyone curious poking at it | can start by looking here: | | https://github.com/RcppCore/Rcpp/blob/940fb23868bf442e587994451e85263baa302d9c/inst/include/Rcpp/vector/Vector.h#L1122-L1126 There is mo

Re: [Rcpp-devel] Limit of 20

2021-12-15 Thread Kevin Ushey
I assume we're talking about Vector::create()? Anyone curious poking at it can start by looking here: https://github.com/RcppCore/Rcpp/blob/940fb23868bf442e587994451e85263baa302d9c/inst/include/Rcpp/vector/Vector.h#L1122-L1126 On Wed, Dec 15, 2021 at 8:51 AM Dirk Eddelbuettel wrote: > > Joseph,

Re: [Rcpp-devel] Limit of 20

2021-12-15 Thread Dirk Eddelbuettel
Joseph, Sorry, can't quote your message as whatever you used confused my mail handler. (Maybe try text-only next time if you remeber? I have had this before, albeit very rarely.) But it is a good idea. Someone with a bit of time should sit down and could do this as we now have C++11 / C++14 as

[Rcpp-devel] Limit of 20

2021-12-14 Thread Joseph Park
Dear Rcpp, I have seen several posts, and bumped into the ceiling of the 20 argument limit.  In the 2017 FAQ, it is explained: Rcpp is constrained by the older C++ standards which do not support variadic function arguments. I don't find mention of this in th

Re: [Rcpp-devel] Limit of 20 on length of Rcpp::List::create?

2011-11-02 Thread Michael Hannon
> From: Douglas Bates > On Tue, Nov 1, 2011 at 3:32 PM, Michael Hannon wrote: >> >> >> Greetings.  It appears that there is a limit of 20 items in a list created >> by; >> >> Rcpp::List:create >>  [...] > Or go into Rcpp/inst/include/Rcpp/generated/vector__create.h and > extend the limit of

Re: [Rcpp-devel] Limit of 20 on length of Rcpp::List::create?

2011-11-01 Thread Tama Ma
Hi, I recommend the following workaround instead... std::vector _your_favorite_list; _your_favourite_list.push_back(_whatever_); _your_favourite_list.push_back(_whatever_); _your_favourite_list.push_back(_whatever_); _your_favourite_list.push_back(_whatever_); _your_favourite_list.push_back(_wha

Re: [Rcpp-devel] Limit of 20 on length of Rcpp::List::create?

2011-11-01 Thread Douglas Bates
On Tue, Nov 1, 2011 at 3:32 PM, Michael Hannon wrote: > > > Greetings.  It appears that there is a limit of 20 items in a list created by; > >     Rcpp::List:create > > I.e., the appended code works as expected if I omit all references to "x21", > but fails with an error (shown below, after the co

[Rcpp-devel] Limit of 20 on length of Rcpp::List::create?

2011-11-01 Thread Michael Hannon
Greetings.  It appears that there is a limit of 20 items in a list created by;     Rcpp::List:create I.e., the appended code works as expected if I omit all references to "x21", but fails with an error (shown below, after the code example) when I include "x21".  (The successful output shown bel