Re: [Rcpp-devel] freeing memory

2016-03-26 Thread Dirk Eddelbuettel
On 26 March 2016 at 11:35, [email protected] wrote: | rinside_sample1 can only be invoked once, i.e. RInside R remains hanging | after returning form the function when invoking it as a function. How | can it be invoked multiple times, some way of freeing the instance of R | is needed? Simple dele

Re: [Rcpp-devel] freeing memory

2016-03-26 Thread rosterma
rinside_sample1 can only be invoked once, i.e. RInside R remains hanging after returning form the function when invoking it as a function. How can it be invoked multiple times, some way of freeing the instance of R is needed? Simple delete R does not work. On 24.3.2016 21:55, Dirk Eddelbuettel

Re: [Rcpp-devel] freeing memory

2016-03-24 Thread Dirk Eddelbuettel
Hi there, On 24 March 2016 at 21:37, [email protected] wrote: | I have used the example rinside_sample1.cpp as a basis for a short | routine to transmit data from C++ to R and to recover the results from R | to C++. On the face of it, everything works nicely both in our mainframe | (linux) compu

[Rcpp-devel] freeing memory

2016-03-24 Thread rosterma
I have used the example rinside_sample1.cpp as a basis for a short routine to transmit data from C++ to R and to recover the results from R to C++. On the face of it, everything works nicely both in our mainframe (linux) computer at ÅAU and on the supercomputers at CSC IT Center of Science (Hel