Re: [Rd] X11 device windows are spawned with empty WM_NAME property

2011-06-17 Thread Drew Frank
On Fri, Jun 17, 2011 at 1:57 PM, Drew Frank wrote: > On Fri, Jun 17, 2011 at 7:26 AM, peter dalgaard wrote: >> >> On Jun 17, 2011, at 15:32 , Prof Brian Ripley wrote: >> >>> >> >>> Is this behavior intended?  Would be it be reasonable to instead create >> >>> windows with a generic name like "R G

[Rd] Annotating a decision tree with categorical variables with a large number of categories

2011-06-17 Thread Matthew Hausmann
I have a decision tree I generated using the tree class. When I call text.tree, if the tree is split on a categorical variable, the text over the split says, for instance, "variable:afn," if the split occurs on the 1st, 6th, and 14th levels of the variable. Unfortunately, if the tree splits over a

Re: [Rd] Controlling stdin and stdout in an embedded R instance

2011-06-17 Thread Dirk Eddelbuettel
On 16 June 2011 at 18:47, Mike Sonsini wrote: | Hello, | | I am very new to R but my question is with respect to the C API for | working with an embedded R console. I have been able to start and stop | an embedded R console from within a C program as well as use the API to | execute commands i

Re: [Rd] Controlling stdin and stdout in an embedded R instance

2011-06-17 Thread Simon Urbanek
Mike, there are many examples of embedding R, one of them is rJava/JRI and you can see how to initialize R with custom callbacks at http://svn.rforge.net/org/trunk/rosuda/JRI/src/Rinit.c Cheers, Simon On Jun 16, 2011, at 6:47 PM, Mike Sonsini wrote: > Hello, > > I am very new to R but my qu

Re: [Rd] X11 device windows are spawned with empty WM_NAME property

2011-06-17 Thread peter dalgaard
On Jun 17, 2011, at 15:32 , Prof Brian Ripley wrote: >>> >>> Is this behavior intended? Would be it be reasonable to instead create >>> windows with a generic name like "R Graphics" prior to updating them with >>> the device number and active/inactive status? > > Yes, no. > Well, "yes, maybe"

Re: [Rd] Controlling stdin and stdout in an embedded R instance

2011-06-17 Thread oliver
Hello, I'm new in exploring R-internals, and also did not explored embedding R into C. I did some C-extensions for packages so far. Nevertheless I can give you a hint, which might be helpful; the example which you linked to, uses R.dll. DLL means: Dynamic linked library. On Unix and Linux the ae

Re: [Rd] X11 device windows are spawned with empty WM_NAME property

2011-06-17 Thread Prof Brian Ripley
On Fri, 17 Jun 2011, peter dalgaard wrote: On Jun 17, 2011, at 01:53 , Drew Frank wrote: Hello, I've noticed that X11 device windows (the ones that pop up when I plot something on Linux) aren't assigned any WM_NAME property until after they've been spawned. This causes problems for users of

Re: [Rd] X11 device windows are spawned with empty WM_NAME property

2011-06-17 Thread peter dalgaard
On Jun 17, 2011, at 01:53 , Drew Frank wrote: > Hello, > > I've noticed that X11 device windows (the ones that pop up when I plot > something on Linux) aren't assigned any WM_NAME property until after they've > been spawned. This causes problems for users of tiling window managers, who > may wi

[Rd] Why does slot<- duplicate its argument?

2011-06-17 Thread Renaud Gaujoux
Hi, is there a reason why `slot<-` should duplicate its argument? I am under R 2.12.1. Thank you, Renaud For example: setClass('A', representation(data='matrix')) a <- new('A') x <- matrix(1,2,3) tracemem(x) slot(a, 'data') <- x ### UNIVERSITY OF CAPE TOWN This e-mail is subject to the