Re: [Rd] importing explicitly declared missing values in read.spss (foreign)

2008-08-04 Thread Prof Brian Ripley
I've put up an experimental version at http://www.stats.ox.ac.uk/pub/R/foreign_0.8-28.1.tar.gz See the new 'use.missings' argument. It does what I think should happen in your example and the other one I tried, but more experience would be helpful. On Mon, 4 Aug 2008, Jeroen Ooms wrote: Please

Re: [Rd] Suggestion: 20% speed up of which() with two-character mod

2008-08-04 Thread Henrik Bengtsson
Hi, I just want to do a follow up this very simple fix/correction/speedup/cleanup of the base::which() function. Here is a diff: diff src/library/base/R/which.R which.R 21c21 < wh <- seq_along(x)[ll <- x & !is.na(x)] --- > wh <- seq_along(x)[x & !is.na(x)] 25c25 < names(wh) <- na

[Rd] unbuffered R CMD check results

2008-08-04 Thread Peter Cowan
Hello all, I'm attempting to write a TextMate command that runs R CMD check and returns the results in an HTML window (I have confirmed with the TextMate devloper that this window will take unbuffered content). It appears that when stdout is not a tty R CMD check and INSTALL buffer results. When

Re: [Rd] Parsing code with newlines

2008-08-04 Thread Jeffrey Horner
Duncan Murdoch wrote on 08/04/2008 08:11 AM: On 04/08/2008 8:50 AM, Peter Jaeger wrote: Dear List, When I try to parse code containing newline characters with R_ParseVector, I get a compilation error. How can I compile code that includes comments and newlines? I am using the following: voi

Re: [Rd] Parsing code with newlines

2008-08-04 Thread Prof Brian Ripley
This adds nothing to your previous post: please don't be annoying and post almost identical messages. I strongly suspect you mean 'parse error' and 'how can I parse R code', but we don't know what the example was and what the error message was. Nor do we know what you are doing with this frage

Re: [Rd] Parsing code with newlines

2008-08-04 Thread Duncan Murdoch
On 04/08/2008 8:50 AM, Peter Jaeger wrote: Dear List, When I try to parse code containing newline characters with R_ParseVector, I get a compilation error. How can I compile code that includes comments and newlines? I am using the following: void* my_compile(char *code) { SEXP cmdSexp, cmd

[Rd] Parsing code with newlines

2008-08-04 Thread Peter Jaeger
Dear List, When I try to parse code containing newline characters with R_ParseVector, I get a compilation error. How can I compile code that includes comments and newlines? I am using the following: void* my_compile(char *code) { SEXP cmdSexp, cmdExpr = R_NilValue; ParseStatus status;

[Rd] Newline in R_ParseVector

2008-08-04 Thread Peter Jaeger
Dear List, When I try to parse code containing newline characters with R_ParseVector, I get a compilation error. How can I compile code that includes comments and newlines? I am using the following: void* my_compile(char *code) { SEXP cmdSexp, cmdExpr = R_NilValue; ParseStatus status;

Re: [Rd] importing explicitly declared missing values in read.spss (foreign)

2008-08-04 Thread Jeroen Ooms
Prof Brian Ripley wrote: > >>From the messages you get I do not believe this is a recent version of read.spss (message 2 no longer appears)... I am sorry you are right here, I was using an outdated version of foreign. I have updated my packages. My current version is now R version 2.7.1 (2008-

Re: [Rd] axis() ignores supplied value of argument mgp[3]?

2008-08-04 Thread Prof Brian Ripley
On Sun, 3 Aug 2008, J. R. M. Hosking wrote: Prof Brian Ripley wrote: What is true is that the line is set before the inline setting of mgp is processed: it all depends on what 'supplied' means, and you supplied two values. This is changed in R-patched now. Thank you, that works. Here is a