Re: [Rd] Misinformative error message for vector()

2008-01-21 Thread Prof Brian Ripley
Easy to fix, and less serious than vector(list, length=NaN) list() On Sun, 20 Jan 2008, Henrik Bengtsson wrote: Nothing serious, but I just noticed that if you pass a function as the 'length' argument of vector(), you get the following misinformative error message: vector(list,

[Rd] read.table: wrong error message? (PR#10592)

2008-01-21 Thread david . reitter
--Apple-Mail-44--797532055 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit I believe read.table may report misleading errors. In this example, where a header line in a file has an incorrect number of row names (28

Re: [Rd] read.table: wrong error message? (PR#10592)

2008-01-21 Thread Peter Dalgaard
[EMAIL PROTECTED] wrote: --Apple-Mail-44--797532055 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit I believe read.table may report misleading errors. In this example, where a header line in a file has an incorrect

Re: [Rd] read.table: wrong error message? (PR#10592)

2008-01-21 Thread ripley
On Sun, 20 Jan 2008, [EMAIL PROTECTED] wrote: --Apple-Mail-44--797532055 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit I believe read.table may report misleading errors. In this example, where a header line in a

[Rd] experiments with slot functions and possible problems NOTE

2008-01-21 Thread Thomas Petzoldt
Hello, first of all, thanks to LT for \pkg{codeutils}. I agree that it is indeed very useful to identify errors and also to encourage re-thinking past solutions. My problem: I want to compare different sets of related sub-functions which should be used alternatively by the same top-level

Re: [Rd] experiments with slot functions and possible problems NOTE

2008-01-21 Thread Duncan Murdoch
On 1/21/2008 8:30 AM, Thomas Petzoldt wrote: Hello, first of all, thanks to LT for \pkg{codeutils}. I agree that it is indeed very useful to identify errors and also to encourage re-thinking past solutions. My problem: I want to compare different sets of related sub-functions which should

Re: [Rd] read.table: wrong error message? (PR#10592)

2008-01-21 Thread david . reitter
--Apple-Mail-1--729254567 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On 21 Jan 2008, at 11:38, Prof Brian Ripley wrote: The first column of your file repeats 0 and 1, and your specification asked for the first

Re: [Rd] read.table: wrong error message? (PR#10592)

2008-01-21 Thread Prof Brian Ripley
On Mon, 21 Jan 2008, David Reitter wrote: On 21 Jan 2008, at 11:38, Prof Brian Ripley wrote: The first column of your file repeats 0 and 1, and your specification asked for the first column to be taken as the row names: from the help file If 'row.names' is not specified and the header

Re: [Rd] experiments with slot functions and possible problems NOTE

2008-01-21 Thread Thomas Petzoldt
Hello Duncan, thank you very much for your prompt reply. When I interpret your answer correctly there seems to be no alternative than either: A) using lots of (possibly private) functions in the package or, B) define dummies for all functions which are in such lists or, C) ignore the NOTE,

Re: [Rd] experiments with slot functions and possible problems NOTE

2008-01-21 Thread Duncan Murdoch
On 1/21/2008 9:58 AM, Thomas Petzoldt wrote: Hello Duncan, thank you very much for your prompt reply. When I interpret your answer correctly there seems to be no alternative than either: A) using lots of (possibly private) functions in the package or, B) define dummies for all functions

Re: [Rd] experiments with slot functions and possible problems NOTE

2008-01-21 Thread Gabor Grothendieck
If the intention is to place fList's contents in the global environment then you need to specify that in addtoenv or else it assumes the parent environment. flistA - list(foo = function () 1:10, bar = function() log(foo())) makefun - function(fList) addtoenv(fList, .GlobalEnv) makefun(flistA)

Re: [Rd] experiments with slot functions and possible problems NOTE

2008-01-21 Thread Thomas Petzoldt
Hi Gabor, nice to see you on this thread. As you see, I'm back with my old problem. Gabor Grothendieck wrote: If the intention is to place fList's contents in the global environment then you need to specify that in addtoenv or else it assumes the parent environment. No, it was the

Re: [Rd] experiments with slot functions and possible problems NOTE

2008-01-21 Thread Duncan Murdoch
On 1/21/2008 11:50 AM, Thomas Petzoldt wrote: Duncan Murdoch wrote: On 1/21/2008 9:58 AM, Thomas Petzoldt wrote: Hello Duncan, thank you very much for your prompt reply. When I interpret your answer correctly there seems to be no alternative than either: A) using lots of (possibly private)

Re: [Rd] Great tool

2008-01-21 Thread Charles C. Berry
On Sun, 20 Jan 2008, Gabor Grothendieck wrote: I agree. Its incredibly useful. OK gentlemen, you have piqued my curiosity. Can you give an example or two of situations you encountered in which a codetools function was so helpful? Chuck On Jan 20, 2008 11:02 PM, Henrik Bengtsson [EMAIL

Re: [Rd] Great tool

2008-01-21 Thread Gabor Grothendieck
Tracking down the free variables in a function when reworking old code. On Jan 21, 2008 12:41 PM, Charles C. Berry [EMAIL PROTECTED] wrote: On Sun, 20 Jan 2008, Gabor Grothendieck wrote: I agree. Its incredibly useful. OK gentlemen, you have piqued my curiosity. Can you give an example

[Rd] gctorture and proc.time (PR#10600)

2008-01-21 Thread charlie
In R version 2.6.1 (2007-11-26) and R version 2.6.1 Patched (2008-01-19 r44061) on openSUSE 10.2 (X86-64) gctorture() proc.time() Error: protect(): protection stack overflow The problem with this is that then R CMD check --use-gct foo ALWAYS FAILS with cat(Time elapsed: , proc.time() -

[Rd] calling MPI parallel C code from R

2008-01-21 Thread Mark W Kimpel
R developers: I have some parallel C code, written with the MPI library, that I would like to call from R, but I get the error message below. cocite.mat.true.parallel.so compiles without complaint and I have MPI in my path, but R isn't recognizing one of the MPI symbols. I have a feeling that

Re: [Rd] gctorture and proc.time (PR#10600)

2008-01-21 Thread Peter Dalgaard
[EMAIL PROTECTED] wrote: In R version 2.6.1 (2007-11-26) and R version 2.6.1 Patched (2008-01-19 r44061) on openSUSE 10.2 (X86-64) gctorture() proc.time() Error: protect(): protection stack overflow The problem with this is that then R CMD check --use-gct foo ALWAYS FAILS