Hi,
I am trying to translate an R code to cpp,
in R I have a structure like this:
A=list();
for(i in 1:n){
A[[i]]=list();
for(j in 1:m){
A[[i]][[j]]=rep(0, m);
}
}
I want to define this structre in Rcpp not to get it from R with a function
I really appreciate if you help me
Thanks
--
Thank you for posting here. But please be patient -- the list is read by
many, but not everybody can reply within minutes. Also, once posted here, no
point in crossposting to stackoverflow.com.
On 5 May 2011 at 17:08, Fatemeh Riahi wrote:
| Hi,
| I am trying to translate an R code to cpp,
| in R
Does any one encounter such error?
$ ./rinside_example0
Error: cons memory exhausted (limit reached?)
Execution halted
The code is just rinside_example0.cpp.
The make file is just the original Make file with the line "sources :=
$(wildcard *.cpp)"
replaced by
"sources = rinside_exa
On 5 May 2011 at 19:21, deqiang sun wrote:
| Does any one encounter such error?
| $ ./rinside_example0
| Error: cons memory exhausted (limit reached?)
| Execution halted
What operating system? What version of R? Is your R version old?
Try installing (preferably from source) current versions of R
It's linux/centos. There's a recent upgrade of R from 2.9 to 2.12
I am not talking about the RInside's example folder.
I had been working with RInside for a while in my working directory, which
contains a lot CSV format data files. Then suddenly it stopped working. I have
just replaced my hundr
On 5 May 2011 at 20:36, deqiang sun wrote:
| It's linux/centos. There's a recent upgrade of R from 2.9 to 2.12
That should just work.
| I am not talking about the RInside's example folder.
| I had been working with RInside for a while in my working directory, which
contains a lot CSV format