Re: [Rd] raster support in graphics devices

2009-11-30 Thread Charlotte Maia
Hi, I consider raster graphics highly problematic in statistics. People get caught up in the idea of creating pretty pictures, rather than effectively visualising information. Plus a lot of people (who should know better) needlessly put raster images inside reports and articles (even books), whic

[Rd] documentation omission in Extract.Rd?

2009-11-30 Thread Tony Plate
The help file for "[<-" (and "[[<-" doesn't contain those functions in it's usage section ( .../src/library/base/man/Extract.Rd ). Although that file lists "[<-" and "[[<-" as aliases, it doesn't document them in a formal manner (consequently, the "value" argument is not described in the "argu

[Rd] raster support in graphics devices

2009-11-30 Thread Paul Murrell
Hi This is for developers of extension packages that provide extra *graphics devices* for R. In the *development* version of R, support has been added to the graphics engine for sending raster images (bitmaps) to a graphics device. This consists mainly of two new device functions: dev_Rast

Re: [Rd] group generics

2009-11-30 Thread Ross Boylan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin Morgan wrote: > Hi Ross -- > > Ross Boylan writes: > >> I have classes A and B, where B contains A. In the implementation of >> the group generic for B I would like to use the corresponding group >> generic for A. Is there a way to do th

Re: [Rd] Bug in R evaluating a huge instruction (PR#14096)

2009-11-30 Thread Duncan Murdoch
On 30/11/2009 10:50 AM, cout...@codelutin.com wrote: Hello, I do not know if i am facing a bug or a mistake (and if it is a bug i do = not know in which category I can put it on the bug tracker), so I post=20 my message here. I am trying to use the Morris function from the sensitivity package

[Rd] Bug in R evaluating a huge instruction (PR#14096)

2009-11-30 Thread couteau
Hello, I do not know if i am facing a bug or a mistake (and if it is a bug i do = not know in which category I can put it on the bug tracker), so I post=20 my message here. I am trying to use the Morris function from the sensitivity package (but = that is not the problem). I created a (big) ins

Re: [Rd] PROTECT and OCaml GC.

2009-11-30 Thread Simon Urbanek
On Nov 30, 2009, at 16:07 , Guillaume Yziquel wrote: Simon Urbanek a écrit : And it goes then to my other question: How can you pass to eval a LANGSXP where the CAR is an *anonymous* function, no SYMSXP involved? You just pass it as value of the call. I suspect the reason it doesn't wor

Re: [Rd] PROTECT and OCaml GC.

2009-11-30 Thread Guillaume Yziquel
Simon Urbanek a écrit : And it goes then to my other question: How can you pass to eval a LANGSXP where the CAR is an *anonymous* function, no SYMSXP involved? You just pass it as value of the call. I suspect the reason it doesn't work is in your code, not in the facility (note that the link

Re: [Rd] PROTECT and OCaml GC.

2009-11-30 Thread Simon Urbanek
On Nov 30, 2009, at 13:14 , Guillaume Yziquel wrote: Simon Urbanek a écrit : Because I've been unable to find what exactly applyClosure or eval requires, when it comes to the structure of the argument LANGSXP. For example. LANGSXP is simply a pairlist representing the expression, e.g. to

Re: [Rd] :Re: PROTECT and OCaml GC.

2009-11-30 Thread Laurent Gautier
Guillaume Yziquel wrote: Laurent Gautier a écrit : Anonymous R objects, that is without an associated symbol in R, can be passed to functions (and in that way makes a binding "take hold of R objects without using symbols"). For example, building R code made of anonymous objects can be achieve

Re: [Rd] PROTECT and OCaml GC.

2009-11-30 Thread Guillaume Yziquel
Simon Urbanek a écrit : Because I've been unable to find what exactly applyClosure or eval requires, when it comes to the structure of the argument LANGSXP. For example. LANGSXP is simply a pairlist representing the expression, e.g. to look at "a+2" expression: > .Internal(inspect(quot

Re: [Rd] PROTECT and OCaml GC.

2009-11-30 Thread Simon Urbanek
On Nov 30, 2009, at 12:08 , Guillaume Yziquel wrote: Simon Urbanek a écrit : You're talking about two entirely different things -- bypassing the API is a very bad idea, but it has nothing to do with your last paragraph. It's very good to hear that it's two different things. This has been

Re: [Rd] :Re: PROTECT and OCaml GC.

2009-11-30 Thread Guillaume Yziquel
Laurent Gautier a écrit : Anonymous R objects, that is without an associated symbol in R, can be passed to functions (and in that way makes a binding "take hold of R objects without using symbols"). For example, building R code made of anonymous objects can be achieved by making a LANGSXP obj

Re: [Rd] PROTECT and OCaml GC.

2009-11-30 Thread Guillaume Yziquel
Simon Urbanek a écrit : You're talking about two entirely different things -- bypassing the API is a very bad idea, but it has nothing to do with your last paragraph. It's very good to hear that it's two different things. This has been quite unclear to me. The API gives you access all use

Re: [Rd] :Re: PROTECT and OCaml GC.

2009-11-30 Thread Laurent Gautier
Guillaume Yziquel wrote: Laurent Gautier a écrit : It does not have to be a functional language. To see it in use within a some-language-to-R bridge, you can check the source in JRI, rpy2. I can mostly speak for rpy2, and the way it is done there relies on both R and Python's GC. Creating a an

Re: [Rd] :Re: PROTECT and OCaml GC.

2009-11-30 Thread Guillaume Yziquel
Laurent Gautier a écrit : It does not have to be a functional language. To see it in use within a some-language-to-R bridge, you can check the source in JRI, rpy2. I can mostly speak for rpy2, and the way it is done there relies on both R and Python's GC. Creating a anonymous R object presented

[Rd] :Re: PROTECT and OCaml GC.

2009-11-30 Thread Laurent Gautier
On Nov 28, 2009, at 7:50 PM, Guillaume Yziquel wrote: FWIW what I think you should be really looking at is R_PreserveObject/R_ReleaseObject. OK. Thanks. I would suggest looking at the many other R embeddings in other languages that already exist since I don't think you approach is very viable

Re: [Rd] PROTECT and OCaml GC.

2009-11-30 Thread Simon Urbanek
Guillaume, On Nov 29, 2009, at 13:57 , Guillaume Yziquel wrote: Simon Urbanek a écrit : On Nov 28, 2009, at 7:50 PM, Guillaume Yziquel wrote: FWIW what I think you should be really looking at is R_PreserveObject/R_ReleaseObject. OK. Thanks. I would suggest looking at the many other R embe

[Rd] include body in the call to httpd

2009-11-30 Thread Romain Francois
Hello, Would it be possible to include the body of the request that is sent to the internal web server as the "body" argument of the httpd function ? At the moment, in Rhttpd.c the body is filled as part of the worker_input_handler, but it does not arrive to the R side (the httpd function).

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

2009-11-30 Thread Benilton Carvalho
Thank you Martin, for putting this together. Cheers, b On Nov 30, 2009, at 11:10 AM, maech...@stat.math.ethz.ch wrote: >> Tony Plate >>on Sun, 22 Nov 2009 10:21:33 -0600 writes: > >> maech...@stat.math.ethz.ch wrote: "PD" == Peter Dalgaard on Fri, 20 Nov 2009 09:54

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

2009-11-30 Thread maechler
> Tony Plate > on Sun, 22 Nov 2009 10:21:33 -0600 writes: > maech...@stat.math.ethz.ch wrote: >>> "PD" == Peter Dalgaard >>> on Fri, 20 Nov 2009 09:54:34 +0100 writes: >>> >> PD> m...@celos.net wrote: >> >> Arrays of POSIXlt dates always retu

Re: [Rd] cor.test(method = spearman, exact = TRUE) not exact (PR#14095)

2009-11-30 Thread Petr Savicky
On Mon, Nov 30, 2009 at 04:00:12AM +0100, dsim...@gmail.com wrote: > > a <- c(1:10) > > b <- c(1:10) > > cor.test(a, b, method = "spearman", alternative = "greater", exact = TRUE) > > Spearman's rank correlation rho > > data: a and b > S = 0, p-value < 2.2e-16 > alternative hypothesis:

[Rd] cor.test(method = spearman, exact = TRUE) not exact (PR#14095)

2009-11-30 Thread dsimcha
Full_Name: David Simcha Version: 2.10 OS: Windows XP Home Submission from: (NULL) (173.3.208.5) > a <- c(1:10) > b <- c(1:10) > cor.test(a, b, method = "spearman", alternative = "greater", exact = TRUE) Spearman's rank correlation rho data: a and b S = 0, p-value < 2.2e-16 alternative

Re: [Rd] "bug report" field in DESCRIPTION file?

2009-11-30 Thread Martin Maechler
> "DM" == Duncan Murdoch > on Sat, 28 Nov 2009 13:23:39 -0500 writes: DM> On 26/11/2009 12:38 PM, Barry Rowlingson wrote: >> On Thu, Nov 26, 2009 at 1:39 PM, Duncan Murdoch wrote: >> >>> This sounds like a good idea, though I would add a "package" parameter to