Re: [Rd] assignInNamespace and new bindings

2011-06-01 Thread Thomas Friedrichsmeier
Hi, On Tuesday 31 May 2011, luke-tier...@uiowa.edu wrote: Yes you should. Changing things in other people's packages is not a safe thing to do. sorry to insist, but I was hoping for a slightly more specific pointer. I'll try asking it another way: Suppose I was using assignInNamespace()

Re: [Rd] Query super- and subclasses of a class: is there a better way than to use 'completeClassDefinition()'

2011-06-01 Thread Janko Thyson
Hi Martin, right, that's exactly what I thought. Thanks for the pointer to 'getClassDef()'. Pretty obvious place to start, I have to admit ;-) But I had this 'completeClassDefinition()' thing in a function I've written long long ago where I didn't really know my way around class details yet.

[Rd] Overloading S4 methods

2011-06-01 Thread Iago Mosqueira
Dear all, I am experiencing some problems with S4 method overloading. I have defined a generic for graphics:plot, using setGeneric(plot, useAsDefault = plot) and with importFrom('graphics', 'plot') and exportMethods('plot') in the NAMESPACE file of pkg A. I then proceed to define a method

Re: [Rd] GUI hooks in R [Was: assignInNamespace and new bindings]

2011-06-01 Thread Simon Urbanek
On May 31, 2011, at 5:23 PM, Thomas Friedrichsmeier wrote: On Tuesday 31 May 2011, Simon Urbanek wrote: The history entries are somewhat in a grey area, because most GUIs use their own implementation of history (and thus they are irrelevant) and the *history() commands are documented to only

[Rd] possibly invalid assertion in setRefClass?

2011-06-01 Thread Michael Lawrence
setRefClass(Foo, fields = list()) Error in setRefClass(Foo, fields = list()) : A list argument for fields must have nonempty names for all the fields In my opinion, the above should not fail. There are no fields. Thanks, Michael [[alternative HTML version deleted]]

Re: [Rd] possibly invalid assertion in setRefClass?

2011-06-01 Thread William Dunlap
-Original Message- From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] On Behalf Of Michael Lawrence Sent: Wednesday, June 01, 2011 9:15 AM To: r-devel@r-project.org Subject: [Rd] possibly invalid assertion in setRefClass? setRefClass(Foo, fields = list())

Re: [Rd] GUI hooks in R [Was: assignInNamespace and new bindings]

2011-06-01 Thread Thomas Friedrichsmeier
On Wednesday 01 June 2011, Simon Urbanek wrote: I suppose, yes, it's possible, but I see somewhat of an asymmetry if done that way : GUIs are like plug-ins in that there is a set of functions they have to implement to work properly. In the current state this is done using the C-level hooks,

Re: [Rd] assignInNamespace and new bindings

2011-06-01 Thread luke-tierney
On Wed, 1 Jun 2011, Thomas Friedrichsmeier wrote: Hi, On Tuesday 31 May 2011, luke-tier...@uiowa.edu wrote: Yes you should. Changing things in other people's packages is not a safe thing to do. sorry to insist, but I was hoping for a slightly more specific pointer. I'll try asking it

Re: [Rd] GUI hooks in R [Was: assignInNamespace and new bindings]

2011-06-01 Thread Simon Urbanek
On Jun 1, 2011, at 1:50 PM, Thomas Friedrichsmeier wrote: On Wednesday 01 June 2011, Simon Urbanek wrote: I suppose, yes, it's possible, but I see somewhat of an asymmetry if done that way : GUIs are like plug-ins in that there is a set of functions they have to implement to work properly.

Re: [Rd] GUI hooks in R [Was: assignInNamespace and new bindings]

2011-06-01 Thread Thomas Friedrichsmeier
On Wednesday 01 June 2011, Simon Urbanek wrote: This is a whole different story. So far I have been talking about embedding GUIs which use Read/WriteConsole and that is also what the original question was about. Obviously you can add toolkit packages, but I don't consider those GUIs in the

[Rd] read.csv and FileEncoding in Windows version of R 2.13.0

2011-06-01 Thread Alexander Peterhansl
Dear R-devel List: read.csv() seems to have changed in R version 2.13.0 as compared to version 2.12.2 when reading in simple CSV files. Suppose I read in a 2-column CSV file (test.csv), say 1, a 2, b If file is encoded as UTF-8 (on Windows 7), then under R 2.13.0

Re: [Rd] read.csv and FileEncoding in Windows version of R 2.13.0

2011-06-01 Thread Duncan Murdoch
On 01/06/2011 6:00 PM, Alexander Peterhansl wrote: Dear R-devel List: read.csv() seems to have changed in R version 2.13.0 as compared to version 2.12.2 when reading in simple CSV files. Suppose I read in a 2-column CSV file (test.csv), say 1, a 2, b If file is encoded as UTF-8 (on Windows

[Rd] Exiting R Gracefully

2011-06-01 Thread Dario Strbenac
Hello, I thought I'd add this to the mailing list, in case it could be handled smoother in a future release of R. q() Save workspace image? [y/n/c]: n *** caught segfault *** address (nil), cause 'unknown' Possible actions: 1: abort (with core dump, if enabled) 2: normal R exit 3: exit R

Re: [Rd] Exiting R Gracefully

2011-06-01 Thread Prof Brian Ripley
On Thu, 2 Jun 2011, Dario Strbenac wrote: Hello, I thought I'd add this to the mailing list, in case it could be handled smoother in a future release of R. Impossible without a reliably reproducible example (see the posting guide). But it does look as if you have managed to corrupt R's