Re: [Rd] R graphics device for flash apps

2007-07-06 Thread Byron Ellis
Hi Jeffrey, On 7/6/07, Jeffrey Horner <[EMAIL PROTECTED]> wrote: > Byron, > > I just read your blog (statcomp.blogspot.com, linked from your other > post) and rand across your idea of an R/Flash graphics device. I've also > been giving this some thought because of this amazing interactive flash ap

[Rd] R graphics device for flash apps

2007-07-06 Thread Jeffrey Horner
Byron, I just read your blog (statcomp.blogspot.com, linked from your other post) and rand across your idea of an R/Flash graphics device. I've also been giving this some thought because of this amazing interactive flash app: http://tools.google.com/gapminder and others from http://www.gapmind

[Rd] rbind.data.frame: bug?

2007-07-06 Thread Mark.Bravington
Consider the following, which is new behaviour under R 2.5+: > df1 <- data.frame( x=2, y='cat') > df2 <- data.frame( x=3, y='dog') > rbind( df1[-1,], df2)$y == rbind( df1, df2)[-1,]$y Error in Ops.factor(rbind(df1[-1, ], df2)$y, rbind(df1, : Level sets of factors are different T

Re: [Rd] Hook for running a function before evaluation

2007-07-06 Thread Byron Ellis
Running from the Terminal, it acts as a simple shim for people who would prefer to use the Terminal or a terminal-like interface such as ESS. It provides a pretty basic graphics device implementation with a full event loop (without requiring CarbonEL or other workarounds) in that mode. That graphic

Re: [Rd] Hook for running a function before evaluation

2007-07-06 Thread Philippe Grosjean
Hi Byron, Excellent! I am also on OS X (together with Win XP and Quantian using Parallels desktop ;-) So far, so good, I have the latest RExecServer running in a terminal. So, what can I do with it? Best, Philippe ..<°}))>< ) ) ) ) ) ( ( (

Re: [Rd] Hook for running a function before evaluation

2007-07-06 Thread Byron Ellis
Hi Philippe, This is exactly the approach being taken in RExecServer (which is in turn possibly connected to front ends via distributed objects). It's an OS X app so the model is my_ReadConsole(...) { didFinishEvaluationForInterpreter(...); internalReadConsole(...); (usually start the run loop

Re: [Rd] problem with findFun call from embedded R

2007-07-06 Thread Joe Conway
Jeffrey Horner wrote: Joe Conway wrote: I was debugging a problem reported to me regarding PL/R, and found that I can duplicate it using only R sources. It might be characterized as possibly a misuse of the findFun() function, but I leave that for the R devel experts to decide. My question i

Re: [Rd] problem with findFun call from embedded R

2007-07-06 Thread Joe Conway
Joe Conway wrote: Yes, if I patch RNamedCall.c with the attached (based on your function), everything seems to work. Sorry -- I managed to mess up that patch. This one should be better. Joe *** ../../../R-2.5.1/tests/Embedding/RNamedCall.c Mon Sep 4 07:21:12 2006 --- RNamedCall.c Fri Jul 6

Re: [Rd] problem with findFun call from embedded R

2007-07-06 Thread Joe Conway
Byron Ellis wrote: > Yeah, setting R_Interactive is probably fine. Great -- thanks for the confirmation. > As to the findFun issue, > there is a much more useful function (findVar1 maybe?) that wouldn't > die if the object didn't exist. OK, I'll poke around R sources some more. The function prov

Re: [Rd] Shapiro Test P Value Incorrect? (PR#9768)

2007-07-06 Thread Prof Brian Ripley
On Fri, 6 Jul 2007, Petr Savicky wrote: > This is not a bug. The algorithm uses different approximation of the > p-value for n=3 (exact value), 4<=n<=11 and n>=12 as seen in > src/library/stats/src/swilk.c > below the line 202 > /* Calculate significance level for W */ > > The W statistic monoto

[Rd] Hook for running a function before evaluation

2007-07-06 Thread Philippe Grosjean
Hello, I like much addTaskCallback() and friends. However, there are situations were we would like to have a function run BEFORE, not after every top-level tasks. I think specifically to reset options(width = ) to accommodate to the current width of the console, using something like: options(wi

[Rd] How to disable R's C stack checking

2007-07-06 Thread Ev Whin
Hi all, I'm developing an application on Mac OS X Darwin which embeds R. However, the application always crashes due to the C stack checking. I know that R_CStackLimit can be set to -1 to disable the stack checking, but I don't know where to put the code "R_CStackLimit=-1". Please give some instr

Re: [Rd] Shapiro Test P Value Incorrect? (PR#9768)

2007-07-06 Thread Petr Savicky
This is not a bug. The algorithm uses different approximation of the p-value for n=3 (exact value), 4<=n<=11 and n>=12 as seen in src/library/stats/src/swilk.c below the line 202 /* Calculate significance level for W */ The W statistic monotonically decreases in the presented example. Petr.