Re: [Rd] as.missing

2006-10-27 Thread Bjørn-Helge Mevik
Gabor Grothendieck wrote: This is what I get: as.missing - force f - function(y, x=1) {cat(missing(x)) ; x} g - function(x=as.missing()) f(3,x) g() FALSEError in as.missing() : argument x is missing, with no default traceback() 3: as.missing() 2: f(3, x) 1: g() traceback() 3:

[Rd] What to do with a inconsistency in rank( ) that's in S+ and R ever since?

2006-10-27 Thread Jens Oehlschlägel
Dear R-developers, I just realized that rank() behaves inconsistent if combining one of na.last in {TRUE|FALSE} with a ties.method in {average|random|max|min}. The documentation suggests that e.g. with na.last=TRUE NAs are treated like the last (=highest) value, which obviously is not the case:

[Rd] all.names() and all.vars(): sorting order of functions' return vector

2006-10-27 Thread Pfaff, Bernhard Dr.
Dear list-subscriber, in the process of writing a general code snippet to extract coefficients in an expression (in the example below: 0.5 and -0.7), I stumbled over the following peculiar (at least peculiar to me:-) ) sorting behaviour of the function all.names(): expr1 - expression(x3 = 0.5 *

[Rd] Overloading functions

2006-10-27 Thread Tom McCallum
Hi Everyone I have a function f which does something using a function g. Function f is in a library and g has a default stub in the library but will be mainly overloaded in a later R script. For example: ## In a compiled package 'P' # g - function() {

Re: [Rd] all.names() and all.vars(): sorting order of functions' return vector

2006-10-27 Thread Gabor Grothendieck
Rewrite expr2 - expression(x3 - 0.5 * x1 - 0.7 * x2) like this: expression(`-`(x3, `-`(`*`(0.5, x1), `*`(0.7, x2 and it becomes clear. On 10/27/06, Pfaff, Bernhard Dr. [EMAIL PROTECTED] wrote: Dear list-subscriber, in the process of writing a general code snippet to extract

Re: [Rd] Pb with .findInheritedMethods

2006-10-27 Thread John Chambers
A problem with callNextMethod, which is caching an inherited method as if it was not inherited, causing confusion on the next search. Should be fairly easy to fix, but may be a while before I get time to do so. By the way, I hope your simplified example does not reflect what happens in the

Re: [Rd] S4 pb in R 2.5.0

2006-10-27 Thread John Chambers
Thanks for the typo, it might have taken a while to find this one otherwise! In 2.5.0 and 2.4patched, the subclass information attempts to be complete. That subclass information needs to be removed from all superclasses when the class is redefined, and currently isn't. The particular

Re: [Rd] as.missing

2006-10-27 Thread Paul Gilbert
Bjørn-Helge Mevik wrote: Gabor Grothendieck wrote: This is what I get: as.missing - force f - function(y, x=1) {cat(missing(x)) ; x} g - function(x=as.missing()) f(3,x) g() FALSEError in as.missing() : argument x is missing, with no default traceback() 3:

Re: [Rd] as.missing

2006-10-27 Thread Peter Dalgaard
Paul Gilbert [EMAIL PROTECTED] writes: I.e., when x is missing in g, and g calls f(3,x), f will use its default value for x. Yes, that is the behaviour I am looking for. That is, f should do what it normal would do if it were called with x missing. But if x has a default in g then

[Rd] RMySQL and stored procedures

2006-10-27 Thread Michal Okoniewski
Hi, I use RMySQL to connect to MySQL server where I have a couple of stored procedures. I know that the function for the stored procedures is not yet implemented, but I was trying to get around the problem connecting like that: drv - dbDriver(MySQL) con - dbConnect(drv,user=MyUser,

Re: [Rd] Overloading functions

2006-10-27 Thread Tom McCallum
On Fri, 27 Oct 2006 15:54:40 +0100, Tom McCallum [EMAIL PROTECTED] wrote: On Fri, 27 Oct 2006 14:49:15 +0100, Paul Roebuck [EMAIL PROTECTED] wrote: On Fri, 27 Oct 2006, Tom McCallum wrote: I have a function f which does something using a function g. Function f is in a library and g

Re: [Rd] as.missing

2006-10-27 Thread Duncan Murdoch
On 10/27/2006 10:24 AM, Peter Dalgaard wrote: Paul Gilbert [EMAIL PROTECTED] writes: I.e., when x is missing in g, and g calls f(3,x), f will use its default value for x. Yes, that is the behaviour I am looking for. That is, f should do what it normal would do if it were called with

Re: [Rd] Error: invalid multibyte string

2006-10-27 Thread Thomas Lumley
On Fri, 27 Oct 2006, Henrik Bengtsson wrote: In Section Package subdirectories in Writing R Extensions [2.4.0 (2006-10-10)] it says: Only ASCII characters (and the control characters tab, formfeed, LF and CR) should be used in code files. Other characters are accepted in comments, but then

Re: [Rd] as.missing

2006-10-27 Thread Paul Gilbert
Peter Dalgaard wrote: Paul Gilbert [EMAIL PROTECTED] writes: I.e., when x is missing in g, and g calls f(3,x), f will use its default value for x. Yes, that is the behaviour I am looking for. That is, f should do what it normal would do if it were called with x missing.

Re: [Rd] What to do with a inconsistency in rank() that's in S+ and R ever since?

2006-10-27 Thread Andrew Piskorski
On Fri, Oct 27, 2006 at 11:14:25AM +0200, Jens Oehlschl?gel wrote: rather, but in fact NAs seem to be always treated ties.method = first. I have no idea in which situation one could desire e.g. ties.method = average except for NAs!? Interesting. I was aware of the S-Plus vs. R difference,

Re: [Rd] as.missing

2006-10-27 Thread Paul Gilbert
Duncan Murdoch wrote: On 10/27/2006 10:24 AM, Peter Dalgaard wrote: Paul Gilbert [EMAIL PROTECTED] writes: I.e., when x is missing in g, and g calls f(3,x), f will use its default value for x. Yes, that is the behaviour I am looking for. That is, f should do what it normal would

Re: [Rd] as.missing

2006-10-27 Thread Peter Dalgaard
Paul Gilbert [EMAIL PROTECTED] writes: Peter Dalgaard wrote: Paul Gilbert [EMAIL PROTECTED] writes: I.e., when x is missing in g, and g calls f(3,x), f will use its default value for x. Yes, that is the behaviour I am looking for. That is, f should do what it normal would do if

Re: [Rd] as.missing

2006-10-27 Thread Paul Gilbert
Peter Dalgaard wrote: Paul Gilbert [EMAIL PROTECTED] writes: Peter Dalgaard wrote: Paul Gilbert [EMAIL PROTECTED] writes: I.e., when x is missing in g, and g calls f(3,x), f will use its default value for x. Yes, that is the behaviour I am looking for. That

Re: [Rd] as.missing

2006-10-27 Thread Gabor Grothendieck
On 10/26/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: This is what I get: as.missing - force f - function(y, x=1) {cat(missing(x)) ; x} g - function(x=as.missing()) f(3,x) g() FALSEError in as.missing() : argument x is missing, with no default traceback() 3: as.missing() 2: f(3,

Re: [Rd] as.missing

2006-10-27 Thread Luke Tierney
There are lot of subtle issues involved here. We should think through carefuly exactly what semantics we want for missing value propagation before making any changes. Making usage easy at top level is genearlly a good thing, but for usage within functions eliminating error messages by making

[Rd] Idea: Testimonials

2006-10-27 Thread Gabor Grothendieck
It occurred to me that we could have an optional file called TESTIMONIALS that comes with each package which could be a list of short testimonials from users indicating success with that package and possibly a few details of the successful application, e.g. it was used to analyse xyz data. Users

Re: [Rd] Pb with .findInheritedMethods

2006-10-27 Thread Herve Pages
Hi John, John Chambers wrote: A problem with callNextMethod, which is caching an inherited method as if it was not inherited, causing confusion on the next search. Should be fairly easy to fix, but may be a while before I get time to do so. By the way, I hope your simplified example does

[Rd] sources of 2.4.0 patched

2006-10-27 Thread apjaworski
Hi, I have a question about the availability of tarballs for 2.4.0-patched. I routinely compile and install fresh versions of R-patched as well as R-devel every few days. I do it mostly for fun but also to check for possible build problems or problems with my development environment (Win2000,

[Rd] pcre library in R (PR#9319)

2006-10-27 Thread bkinney
Full_Name: Earl Kinney Version: 2.4.0 OS: Red Hat Enterprise Linux 4 Submission from: (NULL) (140.247.116.214) At HMDC, we make use of the cross building tools to build Windows R libraries on Linux. Recently when attempting to update the cross building environment to 2.4.0 we encountered a

Re: [Rd] Idea: Testimonials

2006-10-27 Thread Romain Francois
Gabor Grothendieck wrote: It occurred to me that we could have an optional file called TESTIMONIALS that comes with each package which could be a list of short testimonials from users indicating success with that package and possibly a few details of the successful application, e.g. it was

Re: [Rd] as.missing

2006-10-27 Thread Peter Dalgaard
Luke Tierney [EMAIL PROTECTED] writes: There are lot of subtle issues involved here. We should think through carefuly exactly what semantics we want for missing value propagation before making any changes. Making usage easy at top level is genearlly a good thing, but for usage within

Re: [Rd] sources of 2.4.0 patched

2006-10-27 Thread Peter Dalgaard
[EMAIL PROTECTED] writes: Hi, I have a question about the availability of tarballs for 2.4.0-patched. I routinely compile and install fresh versions of R-patched as well as R-devel every few days. I do it mostly for fun but also to check for possible build problems or problems with my

Re: [Rd] Error: invalid multibyte string

2006-10-27 Thread Henrik Bengtsson
On 10/28/06, Thomas Lumley [EMAIL PROTECTED] wrote: On Fri, 27 Oct 2006, Henrik Bengtsson wrote: In Section Package subdirectories in Writing R Extensions [2.4.0 (2006-10-10)] it says: Only ASCII characters (and the control characters tab, formfeed, LF and CR) should be used in code

[Rd] interactive mode without tty (PR#9320)

2006-10-27 Thread tharkban
Full_Name: Manfred Georg Version: 2.4.0 OS: linux Submission from: (NULL) (128.252.166.190) Hello, I would like to see a command line flag --interactive (--no-interactive) or similar, to explicitly set whether we are in interactive mode on startup (default, of course, remaining whether input is

[Rd] ALARM!!!! Re: [R] regarding large csv file import

2006-10-27 Thread gyadav
hi Jim, if i partition the file, then for further operation like merging the partitioned files and after that doing some analysis on whole data set would again require the same amount of memory. If i am not able to do or if i am not having memory then i feel there should be serious thinking