Romain,
> that's not what I said. It just felt not as easy to use as just grab a SEXP
> and say R_PreserveObject( x ) and then later R_ReleaseObject.
Didn't mean to suggest that you said that. I was asking the list
whether it's discouraged.
Will follow up on the Rcpp list.
-Whit
_
On 01/02/2010 10:26 PM, Whit Armstrong wrote:
Romain,
Is the use of UNPROTECT_PTR discouraged? I wonder why you haven't
considered using it instead.
that's not what I said. It just felt not as easy to use as just grab a
SEXP and say R_PreserveObject( x ) and then later R_ReleaseObject.
I
On 2 January 2010 at 16:26, Whit Armstrong wrote:
| I still think all these Rcpp projects should come together some day.
| Dirk and I talked about combining about two years ago, but "real" work
| got it the way. I'll ping you off list for a follow up.
Have a look at the SVN archive for Rcpp on R
Romain,
Is the use of UNPROTECT_PTR discouraged? I wonder why you haven't
considered using it instead.
I have a similar project that uses a ref counting scheme and handles
the deletion of the shared object with UNPROTECT_PTR. This method has
been working fine, but if there are reasons I should
On 1/2/10 5:50 PM, Romain Francois wrote:
Thanks.
On 01/02/2010 05:36 PM, Laurent Gautier wrote:
[Disclaimer: what is below reflects my understanding from reading the R
source, others will correct where deemed necessary]
On 1/2/10 12:00 PM, r-devel-requ...@r-project.org wrote:
(...)
In
On 01/02/2010 06:01 PM, Simon Urbanek wrote:
On Jan 2, 2010, at 5:07 AM, Romain Francois wrote:
Hello,
We are currently making lots of changes to Rcpp (see the open Rcpp mailing list
if interested [1] in the details).
We are now using [2] R_PreserveObject and R_ReleaseObject to manage garb
On Jan 2, 2010, at 5:07 AM, Romain Francois wrote:
> Hello,
>
> We are currently making lots of changes to Rcpp (see the open Rcpp mailing
> list if interested [1] in the details).
>
> We are now using [2] R_PreserveObject and R_ReleaseObject to manage garbage
> collection instead of the PROT
Thanks.
On 01/02/2010 05:36 PM, Laurent Gautier wrote:
[Disclaimer: what is below reflects my understanding from reading the R
source, others will correct where deemed necessary]
On 1/2/10 12:00 PM, r-devel-requ...@r-project.org wrote:
Hello,
We are currently making lots of changes to Rcpp
Hello,
We are currently making lots of changes to Rcpp (see the open Rcpp
mailing list if interested [1] in the details).
We are now using [2] R_PreserveObject and R_ReleaseObject to manage
garbage collection instead of the PROTECT/UNPROTECT dance. This seems to
work well, but I was wonderin