[Rd] LOESS (PR#9064)

2006-07-07 Thread lamp
Hello, I found a little BUG in loess stats. It does not receive the iterations parameter. It can be debugged in the following way: THIS IS AN EXCERPT FROM THE CODE: fit - simpleLoess(y, x, w, span, degree, parametric, drop.square, normalize, control$statistics, control$surface,

Re: [Rd] LOESS (PR#9064)

2006-07-07 Thread ripley
On Fri, 7 Jul 2006, [EMAIL PROTECTED] wrote: Hello, I found a little BUG in loess stats. It does not receive the iterations parameter. Please provide an example demonstrating this 'BUG', as we do ask you to do, along with basic information like your name, the version of R, the platform

[Rd] BUG in == ? (PR#9065)

2006-07-07 Thread eric . durand
Hello, here is the version of R that I use : version _ platform i486-pc-linux-gnu arch i486 os linux-gnu system i486, linux-gnu status major 2 minor 3.1 year 2006 month 06 day01 svn rev

Re: [Rd] BUG in == ? (PR#9065)

2006-07-07 Thread Peter Dalgaard
[EMAIL PROTECTED] writes: Hello, here is the version of R that I use : version _ platform i486-pc-linux-gnu arch i486 os linux-gnu system i486, linux-gnu status major 2 minor 3.1 year 2006 month

Re: [Rd] User Error (was LOESS (PR#9064))

2006-07-07 Thread ripley
Please do as we ask (repeatedly) and study the help page before posting. 'family' is a separate argument, not part of loess.control, as the help page correctly documents. If you use cars.lo2 - loess(dist ~ speed, cars, family = symmetric, control = loess.control(surface = direct, iterations

Re: [Rd] BUG in == ? (PR#9065)

2006-07-07 Thread Gavin Simpson
On Fri, 2006-07-07 at 11:50 +0200, [EMAIL PROTECTED] wrote: Hello, here is the version of R that I use : version _ platform i486-pc-linux-gnu arch i486 os linux-gnu system i486, linux-gnu status major 2 minor 3.1

Re: [Rd] BUG in == ? (PR#9065)

2006-07-07 Thread Dimitris Rizopoulos
- Original Message - From: Gavin Simpson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: r-devel@stat.math.ethz.ch Sent: Friday, July 07, 2006 1:15 PM Subject: Re: [Rd] BUG in == ? (PR#9065) On Fri, 2006-07-07 at 11:50 +0200, [EMAIL PROTECTED] wrote: Hello, here is the version of R

[Rd] Modifying parsed code

2006-07-07 Thread hadley wickham
I would like to take this: .img(plot(1:10), filename=a) and produce plot(1:10) ie. whenever .img is used, I want to take the first argument and throw away everything else. (I am trying to produce a Sweave like environment in which I can apply certain functions, but not have them displayed in

[Rd] often unnecessary duplicate in sapply / as.vector

2006-07-07 Thread Martin Morgan
sapply calls lapply as answer - lapply(as.list(X), FUN, ...) which, when X is a list, causes X to be duplicated unnecessarily. The coercion is unnecessary for other mode(X) because in lapply we have if (!is.list(X)) X - as.list(X) More generally, perhaps as.vector might not duplicate

Re: [Rd] Modifying parsed code

2006-07-07 Thread Gabor Grothendieck
Assuming the desired output is a character string try: f - function(x) deparse(substitute(x)) f(3+y) [1] 3 + y On 7/7/06, hadley wickham [EMAIL PROTECTED] wrote: I would like to take this: .img(plot(1:10), filename=a) and produce plot(1:10) ie. whenever .img is used, I want to take

Re: [Rd] Modifying parsed code

2006-07-07 Thread Duncan Murdoch
On 7/7/2006 8:08 AM, hadley wickham wrote: I would like to take this: .img(plot(1:10), filename=a) and produce plot(1:10) ie. whenever .img is used, I want to take the first argument and throw away everything else. (I am trying to produce a Sweave like environment in which I can

[Rd] Call R function from Java

2006-07-07 Thread zana adeb
Dear All, I need to call R functions from Java, I've read on the internet about JRI but there are no exemples, neither tutorials. I'm beginner in Java and in R, Could you please help me?? Thank you in advance, Xena -

Re: [Rd] Modifying parsed code

2006-07-07 Thread hadley wickham
I would like to take this: .img(plot(1:10), filename=a) and produce plot(1:10) Peter Dalgaard provided me with this: f - function(e) { if (!is.recursive(e)) e else if (e[[1]] == quote(.img)) e[[2]] else as.call(lapply(e, f)) } f(quote({a-1;.img(abc,123)})) { a - 1 abc } which

Re: [Rd] Modifying parsed code

2006-07-07 Thread Prof Brian Ripley
On Fri, 7 Jul 2006, hadley wickham wrote: I would like to take this: .img(plot(1:10), filename=a) I presume from your title that you want to take foo - parse(text='.img(plot(1:10), filename=a)') ? That's an expression. In which case foo[[1]][[2]] plot(1:10) (first expression which a

Re: [Rd] attributes of environments

2006-07-07 Thread John Chambers
Umm, maybe we should step back a bit here. There are two points being made, both of which I think are reasonable, but they just don't happen to work together. 1. Environments are special objects in R. In fact they are the essential way directly in R to implement reference semantics. Every

Re: [Rd] comment causes browser() to exit (PR#9063)

2006-07-07 Thread Liaw, Andy
If I'm not mistaken, this works as documented. As an example (typed directly into the Rgui console on WinXP): R f - function() { + browser() + cat(I'm here!\n) + cat(I'm still here!\n) + } R f() Called from: f() Browse[1] ## where to? I'm here! I'm still here! which I think is what

Re: [Rd] comment causes browser() to exit (PR#9063)

2006-07-07 Thread Tim Hesterberg
If I'm not mistaken, this works as documented. ... Thanks for the response. The behavior with return is as documented -- hence my earlier enhancement request. The behavior with a comment is contrary to the documentation, hence this as a bug report. On the second point -- help(browser) says:

Re: [Rd] Call R function from Java

2006-07-07 Thread Vincent Yau
Simon: Would JRI able to also invoke stuff from R packages that I have installed? (e.g Bioconductor) Thanks --v On 7/7/06, Simon Urbanek [EMAIL PROTECTED] wrote: On Jul 7, 2006, at 8:50 AM, zana adeb wrote: Dear All, I need to call R functions from Java, I've read on the internet

[Rd] possible bug in grid

2006-07-07 Thread Deepayan Sarkar
Hi, ?gpar says: Specifying the value 'NULL' for a parameter is the same as not specifying any value for that parameter, except for 'col' and 'fill', where 'NULL' indicates not to draw a border or not to fill an area (respectively). However, I get library(grid)

Re: [Rd] Call R function from Java

2006-07-07 Thread Simon Urbanek
On Jul 7, 2006, at 2:05 PM, Vincent Yau wrote: Simon: Would JRI able to also invoke stuff from R packages that I have installed? (e.g Bioconductor) Of course. JRI starts the same R as the RGUI or R console. R is run as one thread in your Java application. Depending on the platform,

Re: [Rd] often unnecessary duplicate in sapply / as.vector

2006-07-07 Thread Thomas Lumley
On Fri, 7 Jul 2006, Martin Morgan wrote: sapply calls lapply as answer - lapply(as.list(X), FUN, ...) which, when X is a list, causes X to be duplicated unnecessarily. The coercion is unnecessary for other mode(X) because in lapply we have if (!is.list(X)) X - as.list(X) That looks