[Rd] R_PreserveObject, R_ReleaseObject : reference counting needed ?

2010-01-02 Thread Romain Francois
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

Re: [Rd] How x[, 'colname1'] is implemented?

2010-01-02 Thread Barry Rowlingson
On Fri, Jan 1, 2010 at 9:40 PM, Peng Yu pengyu...@gmail.com wrote: I'm not complaining that it is not documented. Yes but you didn't answer my question. When you ask a question on these (or any mailing lists) you should always say what efforts you've made to answer the question. I first looked

[Rd] loess() crashes R on my system

2010-01-02 Thread Dennis Murphy
Greetings and happy new year! I am in the process of converting some of the old S-PLUS scripts from Visualizing Data (Cleveland, 1993) into lattice. In fact, I did most of it several years ago, and at the time, all of the scripts that contained loess() worked fine. Tonight, I ran most of the

Re: [Rd] loess() crashes R on my system

2010-01-02 Thread Uwe Ligges
Dennis Murphy wrote: Greetings and happy new year! I am in the process of converting some of the old S-PLUS scripts from Visualizing Data (Cleveland, 1993) into lattice. In fact, I did most of it several years ago, and at the time, all of the scripts that contained loess() worked fine.

Re: [Rd] loess() crashes R on my system

2010-01-02 Thread Peter Ehlers
Dennis, I have no problems with this on my DELL laptop (still running Vista) with R version 2.10.1 Patched (2009-12-21 r50796). -Peter Ehlers Dennis Murphy wrote: Greetings and happy new year! I am in the process of converting some of the old S-PLUS scripts from Visualizing Data (Cleveland,

Re: [Rd] loess() crashes R on my system

2010-01-02 Thread Prof Brian Ripley
The posting guide also applies to R-devel: please provide a complete reproducible example and don't send HTML, as requested there. On Fri, 1 Jan 2010, Dennis Murphy wrote: Greetings and happy new year! I am in the process of converting some of the old S-PLUS scripts from Visualizing Data

Re: [Rd] R-devel Digest, Vol 83, Issue 2

2010-01-02 Thread Laurent Gautier
[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 (see the open Rcpp mailing list if interested [1] in the

Re: [Rd] R_PreserveObject, R_ReleaseObject : reference counting needed ?

2010-01-02 Thread Romain Francois
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

Re: [Rd] R-devel Digest, Vol 83, Issue 2

2010-01-02 Thread Duncan Murdoch
On 02/01/2010 11:36 AM, 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 (see the

Re: [Rd] R_PreserveObject, R_ReleaseObject : reference counting needed ?

2010-01-02 Thread Simon Urbanek
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

Re: [Rd] R-devel Digest, Vol 83, Issue 2

2010-01-02 Thread Laurent Gautier
On 1/2/10 5:56 PM, Duncan Murdoch wrote: On 02/01/2010 11:36 AM, 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: (...) I'd also be

Re: [Rd] R-devel Digest, Vol 83, Issue 2

2010-01-02 Thread Romain Francois
On 01/02/2010 05:56 PM, Duncan Murdoch wrote: On 02/01/2010 11:36 AM, 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

Re: [Rd] R_PreserveObject, R_ReleaseObject : reference counting needed ?

2010-01-02 Thread Laurent Gautier
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

Re: [Rd] R-devel Digest, Vol 83, Issue 2

2010-01-02 Thread Simon Urbanek
On Jan 2, 2010, at 12:17 PM, Laurent Gautier wrote: On 1/2/10 5:56 PM, Duncan Murdoch wrote: On 02/01/2010 11:36 AM, 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,

Re: [Rd] R-devel Digest, Vol 83, Issue 2

2010-01-02 Thread Duncan Murdoch
Simon Urbanek wrote: On Jan 2, 2010, at 12:17 PM, Laurent Gautier wrote: On 1/2/10 5:56 PM, Duncan Murdoch wrote: On 02/01/2010 11:36 AM, Laurent Gautier wrote: [Disclaimer: what is below reflects my understanding from reading the R source, others will correct where deemed

Re: [Rd] R-devel Digest, Vol 83, Issue 2

2010-01-02 Thread luke
On Sat, 2 Jan 2010, Duncan Murdoch wrote: Simon Urbanek wrote: On Jan 2, 2010, at 12:17 PM, Laurent Gautier wrote: On 1/2/10 5:56 PM, Duncan Murdoch wrote: On 02/01/2010 11:36 AM, Laurent Gautier wrote: [Disclaimer: what is below reflects my understanding from reading the R source,

Re: [Rd] R-devel Digest, Vol 83, Issue 2

2010-01-02 Thread Laurent Gautier
On 1/2/10 8:53 PM, Duncan Murdoch wrote: Simon Urbanek wrote: On Jan 2, 2010, at 12:17 PM, Laurent Gautier wrote: On 1/2/10 5:56 PM, Duncan Murdoch wrote: On 02/01/2010 11:36 AM, Laurent Gautier wrote: [Disclaimer: what is below reflects my understanding from reading the R source, others

Re: [Rd] R-devel Digest, Vol 83, Issue 2

2010-01-02 Thread Laurent Gautier
On 1/2/10 8:28 PM, Simon Urbanek wrote: On Jan 2, 2010, at 12:17 PM, Laurent Gautier wrote: On 1/2/10 5:56 PM, Duncan Murdoch wrote: On 02/01/2010 11:36 AM, Laurent Gautier wrote: [Disclaimer: what is below reflects my understanding from reading the R source, others will correct where

Re: [Rd] R_PreserveObject, R_ReleaseObject : reference counting needed ?

2010-01-02 Thread Whit Armstrong
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

Re: [Rd] R_PreserveObject, R_ReleaseObject : reference counting needed ?

2010-01-02 Thread Dirk Eddelbuettel
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

Re: [Rd] R_PreserveObject, R_ReleaseObject : reference counting needed ?

2010-01-02 Thread Romain Francois
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

Re: [Rd] R_PreserveObject, R_ReleaseObject : reference counting needed ?

2010-01-02 Thread Whit Armstrong
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

Re: [Rd] readCitationFile encoding

2010-01-02 Thread Jens Elkner
On Thu, Dec 31, 2009 at 02:50:00PM -0500, Simon Urbanek wrote: On Dec 31, 2009, at 10:05 AM, Jens Elkner wrote: OT: Wondering, what does recommended portable encoding names in this context mean (e.g. AFAIK 'latin1' is not a standardized name ...). It is in R -- since no standard name

Re: [Rd] R-devel Digest, Vol 83, Issue 2

2010-01-02 Thread Romain Francois
On 01/02/2010 11:41 PM, Romain Francois wrote: On 01/02/2010 11:12 PM, Duncan Murdoch wrote: On 02/01/2010 3:16 PM, Laurent Gautier wrote: On 1/2/10 8:53 PM, Duncan Murdoch wrote: Simon Urbanek wrote: On Jan 2, 2010, at 12:17 PM, Laurent Gautier wrote: On 1/2/10 5:56 PM, Duncan Murdoch

Re: [Rd] R-devel Digest, Vol 83, Issue 2

2010-01-02 Thread Laurent Gautier
On 1/2/10 11:41 PM, Romain Francois wrote: On 01/02/2010 11:12 PM, Duncan Murdoch wrote: On 02/01/2010 3:16 PM, Laurent Gautier wrote: On 1/2/10 8:53 PM, Duncan Murdoch wrote: Simon Urbanek wrote: On Jan 2, 2010, at 12:17 PM, Laurent Gautier wrote: On 1/2/10 5:56 PM, Duncan Murdoch wrote:

Re: [Rd] R-devel Digest, Vol 83, Issue 2

2010-01-02 Thread Duncan Murdoch
On 02/01/2010 6:35 PM, Laurent Gautier wrote: On 1/2/10 11:41 PM, Romain Francois wrote: On 01/02/2010 11:12 PM, Duncan Murdoch wrote: On 02/01/2010 3:16 PM, Laurent Gautier wrote: On 1/2/10 8:53 PM, Duncan Murdoch wrote: Simon Urbanek wrote: On Jan 2, 2010, at 12:17 PM, Laurent Gautier

[Rd] R object protection [Was: R-devel Digest, Vol 83, Issue 2]

2010-01-02 Thread Simon Urbanek
On Jan 2, 2010, at 4:08 PM, Laurent Gautier wrote: On 1/2/10 8:28 PM, Simon Urbanek wrote: On Jan 2, 2010, at 12:17 PM, Laurent Gautier wrote: On 1/2/10 5:56 PM, Duncan Murdoch wrote: On 02/01/2010 11:36 AM, Laurent Gautier wrote: [Disclaimer: what is below reflects my understanding from

[Rd] inspect [Was: R-devel Digest, Vol 83, Issue 2]

2010-01-02 Thread Simon Urbanek
On Jan 2, 2010, at 5:41 PM, Romain Francois wrote: On 01/02/2010 11:12 PM, Duncan Murdoch wrote: On 02/01/2010 3:16 PM, Laurent Gautier wrote: On 1/2/10 8:53 PM, Duncan Murdoch wrote: Simon Urbanek wrote: On Jan 2, 2010, at 12:17 PM, Laurent Gautier wrote: On 1/2/10 5:56 PM, Duncan

[Rd] iterative list rm [Was: R-devel Digest, Vol 83, Issue 2]

2010-01-02 Thread Simon Urbanek
On Jan 2, 2010, at 5:41 PM, Romain Francois wrote: On 01/02/2010 11:12 PM, Duncan Murdoch wrote: On 02/01/2010 3:16 PM, Laurent Gautier wrote: On 1/2/10 8:53 PM, Duncan Murdoch wrote: Simon Urbanek wrote: On Jan 2, 2010, at 12:17 PM, Laurent Gautier wrote: On 1/2/10 5:56 PM, Duncan

Re: [Rd] iterative list rm [Was: R-devel Digest, Vol 83, Issue 2]

2010-01-02 Thread Romain Francois
On 01/03/2010 02:04 AM, Simon Urbanek wrote: On Jan 2, 2010, at 5:41 PM, Romain Francois wrote: On 01/02/2010 11:12 PM, Duncan Murdoch wrote: On 02/01/2010 3:16 PM, Laurent Gautier wrote: On 1/2/10 8:53 PM, Duncan Murdoch wrote: Simon Urbanek wrote: On Jan 2, 2010, at 12:17 PM, Laurent