Re: [Rd] Surprising length() of POSIXlt vector (PR#14073)

2009-11-23 Thread Gabor Grothendieck
I agree it should be changed. Perhaps there could be a global option that gives the previous behavior. The global option would be deprecated after a while but in the interim it would give package developers a change to move over and to try it under both definitions. On Fri, Nov 20, 2009 at 1:05

Re: [Rd] R strings, null-terminated or size delimited?

2009-11-23 Thread Guillaume Yziquel
Guillaume Yziquel a écrit : Unfortunately, or fortunately, (depends on the point of view), I've looked at symbols of libR.so (I'm on a Debian box, with Debian R), and I fail to see such symbols exported. How could I get to bind to these functions, without having to compile my stuff and R at

Re: [Rd] R strings, null-terminated or size delimited?

2009-11-23 Thread Guillaume Yziquel
Duncan Murdoch a écrit : You can put probably put together simple R objects like integer arrays without having R running, but anything substantial isn't going to be feasible. Duncan Murdoch That's precisely the issue. I want to map a functional language to a functional language. And keep

Re: [Rd] CRAN Server download statistics (Was: R Usage Statistics)

2009-11-23 Thread Gabor Grothendieck
If a package is not broadly using a dependency it can be listed under Suggests: instead. On Mon, Nov 23, 2009 at 7:09 PM, spencerg wrote: > Beyond what Gabor said, I might download a package that uses "zoo", then use > "zoo" directly in other contexts without ever downloading it directly. >  Tota

Re: [Rd] CRAN Server download statistics (Was: R Usage Statistics)

2009-11-23 Thread spencerg
Beyond what Gabor said, I might download a package that uses "zoo", then use "zoo" directly in other contexts without ever downloading it directly. Total downloads would capture that; top level downloads would not. The flip side is that a package that requires "zoo" may only use it for featu

Re: [Rd] Calling default method for primitive functions

2009-11-23 Thread Hadley Wickham
Perfect - thanks! Hadley On Mon, Nov 23, 2009 at 5:22 PM, Gabor Grothendieck wrote: > See ?.subset > > On Mon, Nov 23, 2009 at 4:00 PM, Hadley Wickham wrote: >> Hi all, >> >> How can I call the default method of a S3 object defined by a >> primitive method?   i.e. in the following example, how d

Re: [Rd] CRAN Server download statistics (Was: R Usage Statistics)

2009-11-23 Thread Fellows, Ian
Gabor, Well, I think "discriminates" is a bit over the 'top'. It just measures something else. No statistic is going to be the One True Popularity Statistic. Downloads, Unique IPs and Top level downloads all measure different aspects of popularity. Ian ___

Re: [Rd] Calling default method for primitive functions

2009-11-23 Thread Gabor Grothendieck
See ?.subset On Mon, Nov 23, 2009 at 4:00 PM, Hadley Wickham wrote: > Hi all, > > How can I call the default method of a S3 object defined by a > primitive method?   i.e. in the following example, how do I call the > default [ method instead of the one I defined for the class. > > new_a <- functi

Re: [Rd] CRAN Server download statistics (Was: R Usage Statistics)

2009-11-23 Thread Gabor Grothendieck
On Mon, Nov 23, 2009 at 3:51 PM, Fellows, Ian wrote: > 6. Regarding package dependancies, I was thinking about also counting the > number of top level downloads, as approximated > by the number of downloads where a reverse dependancy was not downloaded in > the next 5 min by the same IP. Top le

Re: [Rd] Calling default method for primitive functions

2009-11-23 Thread Hadley Wickham
>> new_a <- function(x) structure(x, class = "a") >> >> a <- new_a(1:5) >> >> "[.a" <- function(x, i, j, ...) { >>  new_a(x[, j, ]) > > What about > new_a(unclass(x)[, j,]) That's what I'm currently using, but I'm concerned about the performance implications - won't that create a copy of x? Hadle

Re: [Rd] Calling default method for primitive functions

2009-11-23 Thread Simon Urbanek
On Nov 23, 2009, at 16:00 , Hadley Wickham wrote: Hi all, How can I call the default method of a S3 object defined by a primitive method? i.e. in the following example, how do I call the default [ method instead of the one I defined for the class. new_a <- function(x) structure(x, class = "

[Rd] Calling default method for primitive functions

2009-11-23 Thread Hadley Wickham
Hi all, How can I call the default method of a S3 object defined by a primitive method? i.e. in the following example, how do I call the default [ method instead of the one I defined for the class. new_a <- function(x) structure(x, class = "a") a <- new_a(1:5) "[.a" <- function(x, i, j, ...)

Re: [Rd] CRAN Server download statistics (Was: R Usage Statistics)

2009-11-23 Thread Fellows, Ian
Thank you all for the interesting discussion. I'm sensitive to the privacy issue. And am happy to work with any administrators to come up with a solution that works for them. We do not plan on having the raw logs be publicly available, so the IP addresses of the users would be known only to th

Re: [Rd] CRAN Server download statistics (Was: R Usage Statistics)

2009-11-23 Thread Gabor Grothendieck
On Mon, Nov 23, 2009 at 12:37 PM, Friedrich Leisch wrote: > >  > On Mon, Nov 23, 2009 at 12:15 PM, Friedrich Leisch >  > wrote: >  >> IP address plus time will always allow sysadmins to recover >  >> identities. For static adresses or in combination with mail headers >  >> etc it is also not exac

Re: [Rd] CRAN Server download statistics (Was: R Usage Statistics)

2009-11-23 Thread Gabor Grothendieck
On Mon, Nov 23, 2009 at 12:15 PM, Friedrich Leisch wrote: > IP address plus time will always allow sysadmins to recover > identities. For static adresses or in combination with mail headers > etc it is also not exactly rocket science for others. I had not suggested that identifying information be

Re: [Rd] CRAN Server download statistics (Was: R Usage Statistics)

2009-11-23 Thread hadley wickham
>> As Hadley already pointed out we cannot make CRAN logs publicly >> available for privacy reasons. That would be a violation of national >> laws. > > I think that's unlikely.  There is no info given out identifying > users.  There are lots of web stats on the net. Fritz and Stefan are concerned

Re: [Rd] CRAN Server download statistics (Was: R Usage Statistics)

2009-11-23 Thread Gabor Grothendieck
On Mon, Nov 23, 2009 at 12:09 PM, hadley wickham wrote: >>> As Hadley already pointed out we cannot make CRAN logs publicly >>> available for privacy reasons. That would be a violation of national >>> laws. >> >> I think that's unlikely.  There is no info given out identifying >> users.  There are

Re: [Rd] Dead link in Nile help documentation (PR#14079)

2009-11-23 Thread maechler
> "mb" == maarten blaauw > on Sun, 22 Nov 2009 19:55:16 +0100 (CET) writes: mb> When doing ?Nile, the url for the data source is mb> dead. It says http://www.= ssfpack.com/dkbook/ but this mb> has changed to=20 http://www.ssfpack.com/DKbook.html Thank you; I've committe

Re: [Rd] CRAN Server download statistics (Was: R Usage Statistics)

2009-11-23 Thread Gabor Grothendieck
On Mon, Nov 23, 2009 at 11:11 AM, Friedrich Leisch wrote: >> On , >> Anonymous () wrote: >  > Knowing what percentage of different OSes are being used is of >  > interest to package developers and would be obscured by the proposal >  > to massage the data.  I prefer to see the raw figure a

[Rd] Method dispatch for function

2009-11-23 Thread Stavros Macrakis
(I had sent this to r-help and got no responses -- perhaps r-devel is a better list for this question?) How can I determine what S3 method will be called for a particular first-argument class? I was imagining something like functionDispatch('str','numeric') => utils:::str.default , but I can't fi

Re: [Rd] CRAN Server download statistics (Was: R Usage Statistics)

2009-11-23 Thread Jeff Ryan
While I think download statistics are potentially interesting for developers, done incorrectly it can very likely damage the community. A basic data reporting problem, with all of the caveats attached. This information has also been readily available from the main CRAN mirror for years: http://ww

Re: [Rd] CRAN Server download statistics (Was: R Usage Statistics)

2009-11-23 Thread hadley wickham
> A few comments on your current site: > >  * Are you just including packages downloaded interactively from within R? > >  * I don't think the continent from which the package was download is > of much interest.  There's definitely no need to include it on the > main page. > >  * I'd be far more in

Re: [Rd] CRAN Server download statistics (Was: R Usage Statistics)

2009-11-23 Thread hadley wickham
> Knowing what percentage of different OSes are being used is of > interest to package developers and would be obscured by the proposal > to massage the data.  I prefer to see the raw figure as is. I agree. I was arguing that sorting by that value wasn't very useful. > Also the number of IPs are

Re: [Rd] CRAN Server download statistics (Was: R Usage Statistics)

2009-11-23 Thread Gabor Grothendieck
On Mon, Nov 23, 2009 at 9:48 AM, hadley wickham wrote: >> Knowing what percentage of different OSes are being used is of >> interest to package developers and would be obscured by the proposal >> to massage the data.  I prefer to see the raw figure as is. > > I agree.  I was arguing that sorting b

Re: [Rd] CRAN Server download statistics (Was: R Usage Statistics)

2009-11-23 Thread Gabor Grothendieck
Knowing what percentage of different OSes are being used is of interest to package developers and would be obscured by the proposal to massage the data. I prefer to see the raw figure as is. Also the number of IPs are important and should not be removed in my opinion since (1) it is a measure of

Re: [Rd] CRAN Server download statistics (Was: R Usage Statistics)

2009-11-23 Thread hadley wickham
Hi Ian, I've spoken with Stefan Theussl (cran maintainer) about this, and he's concerned about the privacy implications of making the apache access logs public. A compromise that he mentioned was having a script run on the cran mirror that processed the log files and output summary statistics. T

Re: [Rd] OOP with Encapsulated Class Definitions

2009-11-23 Thread Barry Rowlingson
On Mon, Nov 23, 2009 at 10:04 AM, Charlotte Maia wrote: > Hi all, > > I'm seeking feedback (good, bad or indifferent) in regards to > developing (further) a new class system for R, that uses encapsulated > class definitions (i.e. the method definitions are literally inside > the body of the class

[Rd] OOP with Encapsulated Class Definitions

2009-11-23 Thread Charlotte Maia
Hi all, I'm seeking feedback (good, bad or indifferent) in regards to developing (further) a new class system for R, that uses encapsulated class definitions (i.e. the method definitions are literally inside the body of the class definition). A working (however very rough and poorly tested) syste