Re: [Rd] Fwd: [R] size of point symbols

2009-05-26 Thread Prof Brian Ripley
I don't know where you get your claims from. R graphics is handled internally in inches, with a device-specific mapping to pixels/points etc (which is documented for each device on its help page). This has to be done carefully, as pixels may not be square. What the meaning of pch=1:23 is in

Re: [Rd] plot ignores type= n when x is factor (PR#13703)

2009-05-26 Thread Prof Brian Ripley
On Thu, 14 May 2009, paulj...@ku.edu wrote: Full_Name: Paul E. Johnson Version: 2.9.1 Where did you get that? Time travel? OS: Linux (Ubuntu 9.04) Submission from: (NULL) (129.237.61.25) x - gl(2,50) y - rnorm(100) plot(x,y) plot(x,y, type=n) I *wish* the last one would draw a blank

Re: [Rd] [R] sprintf() question

2009-05-26 Thread Prof Brian Ripley
Thank you, incorporated now. As the help page says, %a is a C99 feature that is not available on all platforms. The *printf in msvcrt.dll is a long way from C99-compatible (it dates from ca 10 years ago, but later VC runtimes are also incompatible). Recently MinGW has attempted to

Re: [Rd] Vista authorization issues (PR#13718)

2009-05-26 Thread Uwe Ligges
There is no bug in R, or can you tell us what is not working in R? You just told us that JGR and Tinn-R are not working. But you need to report that to the corresponding maintainers. Uwe Ligges dpkesl...@juno.com wrote: Full_Name: David Kesling Version: 2.9.0 OS: Windows Vista XP sp2

Re: [Rd] Can a function know what other function called it?

2009-05-26 Thread Duncan Murdoch
On 5/24/2009 10:23 AM, Romain Francois wrote: Duncan Murdoch wrote: On 23/05/2009 4:55 PM, Robert Gentleman wrote: Kynn Jones wrote: [snip] and you have a breakpoint in bar, you could not (easily) distinguish which of the two calls to bar was active. There is no line counter or anything

[Rd] R Embedded waring and error callbacks

2009-05-26 Thread Christian Ledergerber
Hi, I would like to display error messages and warnings which are generated in R in my own GUI. For normal output we simply had to assign a callback function to ptr_R_WriteConsole and ptr_R_ShowMessage. According to google there should be similar function pointers for error messages. Such as

Re: [Rd] Can a function know what other function called it?

2009-05-26 Thread Romain Francois
Duncan Murdoch wrote: On 5/24/2009 10:23 AM, Romain Francois wrote: Duncan Murdoch wrote: On 23/05/2009 4:55 PM, Robert Gentleman wrote: Kynn Jones wrote: [snip] and you have a breakpoint in bar, you could not (easily) distinguish which of the two calls to bar was active. There is no

Re: [Rd] plot ignores type= n when x is factor (PR#13703)

2009-05-26 Thread Paul Johnson
On Tue, May 26, 2009 at 3:11 AM, Prof Brian Ripley rip...@stats.ox.ac.uk wrote: On Thu, 14 May 2009, paulj...@ku.edu wrote: Full_Name: Paul E. Johnson Version: 2.9.1 Where did you get that?  Time travel? No, actually. I used time travel to return to the present and pre-maturely file the

Re: [Rd] plot ignores type= n when x is factor (PR#13703)

2009-05-26 Thread Barry Rowlingson
On Tue, May 26, 2009 at 5:58 PM, Paul Johnson pauljoh...@gmail.com wrote: There's no mention of plot.factor in the plot help page. Yes there is, but hidden slightly more than the planning application for the destruction of the Earth (It was on display in the bottom of a locked filing cabinet

Re: [Rd] Can a function know what other function called it?

2009-05-26 Thread Duncan Murdoch
On 5/26/2009 12:57 PM, Romain Francois wrote: Duncan Murdoch wrote: On 5/24/2009 10:23 AM, Romain Francois wrote: Duncan Murdoch wrote: On 23/05/2009 4:55 PM, Robert Gentleman wrote: Kynn Jones wrote: [snip] and you have a breakpoint in bar, you could not (easily) distinguish which of

Re: [Rd] plot ignores type= n when x is factor (PR#13703)

2009-05-26 Thread Duncan Murdoch
On 5/26/2009 1:38 PM, Barry Rowlingson wrote: On Tue, May 26, 2009 at 5:58 PM, Paul Johnson pauljoh...@gmail.com wrote: There's no mention of plot.factor in the plot help page. Yes there is, but hidden slightly more than the planning application for the destruction of the Earth (It was on

Re: [Rd] R Embedded waring and error callbacks

2009-05-26 Thread Thomas Friedrichsmeier
On Tuesday 26 May 2009, Christian Ledergerber wrote: I would like to display error messages and warnings which are generated in R in my own GUI. For normal output we simply had to assign a callback function to ptr_R_WriteConsole and ptr_R_ShowMessage. According to google there should be

Re: [Rd] Can a function know what other function called it?

2009-05-26 Thread Duncan Murdoch
On 5/26/2009 12:57 PM, Romain Francois wrote: Duncan Murdoch wrote: On 5/24/2009 10:23 AM, Romain Francois wrote: Duncan Murdoch wrote: On 23/05/2009 4:55 PM, Robert Gentleman wrote: Kynn Jones wrote: [snip] and you have a breakpoint in bar, you could not (easily) distinguish which of

[Rd] Bug in $-.data.frame yields corrupt data frame (PR#13724)

2009-05-26 Thread smckinney
Full_Name: Steven McKinney Version: 2.9.0 OS: Mac OS X 10.5.6 Submission from: (NULL) (142.103.207.10) A corrupt data frame can be constructed as follows: foo - matrix(1:12, nrow = 3) bar - data.frame(foo) bar$NewCol - foo[foo[, 1] == 4, 4] bar lapply(bar, length) foo - matrix(1:12, nrow

Re: [Rd] passing ... arguments to a function called by eval()

2009-05-26 Thread Duncan Murdoch
On 26/05/2009 5:13 PM, Richard Morey wrote: Hi everyone, I am starting learn to call C code from within R. So far, I've been trying toy problems to see if I can get them to work. One of the things I'd like to do is pass an arbitrary R function to C, evaluate the value in the C code using