[Rd] prediction in DPpackage

2009-03-29 Thread soetzel
Hallo, I´m using the the DPpackage to estimate a Bayesian semiparametric generalized additive model with the PSgam-command. To compare the estimator with other estimators, I want to compare the mean squared error for in sample and out-of sample predictions. For linear models, I typically use t

[Rd] read.table on long lines buggy (PR#13626)

2009-03-29 Thread manikandan_narayanan
Full_Name: Manikandan Narayanan Version: 2.8.1 OS: linux-gnu Submission from: (NULL) (155.91.28.231) Hi R-folks, I have two three-line text files: tst1, tst2 (they are the same except that the second line is longer in tst1; see cat() cmds below). read.table is only able to read the 3rd lin

[Rd] Incorrect behaviour of [.data.frame (PR#13628)

2009-03-29 Thread waku
Full_Name: Wacek Kusnierczyk Version: 2.8.0 and 2.10.0 r48231 OS: Ubuntu 8.04 Linux 32 bit Submission from: (NULL) (80.202.30.36) According to the R Language definition (sec. 3.4.3), [.data.frame has the following properties: "if two indices are supplied (even if one is empty) it creates matrix-

[Rd] Another incorrect behaviour of [.data.frame (PR#13629)

2009-03-29 Thread waku
Full_Name: Wacek Kusnierczyk Version: 2.8.0 and 2.10.0 r48231 OS: Ubuntu 8.04 Linux 32 bit Submission from: (NULL) (129.241.198.65) In a previous report (Incorrect behaviour of [.data.frame (PR#13628), awaiting approval) I showed that [.data.frame behaves incorrectly (i.e., in contradiction to wh

Re: [Rd] Recent setClass fails where previous succeeded

2009-03-29 Thread John Chambers
It's the result of fixing a previous bug ( that Martin Maechler uncovered). Suppose that "A" was on another package. Then the result of as(new("B"), "A") had the wrong package in its class. The construction of the as() method stored in the "contains" slot of class "B" will generate an object fro

[Rd] Compiler options for Makefile.win

2009-03-29 Thread cstrato
Dear all, For certain reasons I have to compile the source code of my package on Windows XP using Microsoft Visual Studio 9.0, thus I had to create a "Makefile.win". Now I have a question regarding compiler options /MT vs /MD for Makefile.win. The following partial output shows that when bui

[Rd] if does not covert raw to logical (PR#13630)

2009-03-29 Thread waku
Full_Name: Wacek Kusnierczyk Version: 2.8.0 and 2.10.0 r48242 OS: Ubuntu 8.04 Linux 32 bit Submission from: (NULL) (80.202.30.36) The following raises an error: if (as.raw(1)) 1 # error: unimplemented type 'raw' in 'asLogical' However, ?'if' says: " Arguments: cond: A length-one lo

[Rd] Error in help file for quantile()

2009-03-29 Thread Rob Hyndman
For some reason, the help file on quantile() says "Missing values are ignored" in the description of the x argument. Yet this is only true if na.rm=TRUE. I suggest the help file is amended to remove the words "Missing values are ignored". Rob _ Rob J Hyndman Professor of

Re: [Rd] Error in help file for quantile()

2009-03-29 Thread Ted Harding
On 29-Mar-09 20:43:33, Rob Hyndman wrote: > For some reason, the help file on quantile() says "Missing values are > ignored" in the description of the x argument. Yet this is only true > if na.rm=TRUE. I suggest the help file is amended to remove the words > "Missing values are ignored". > Rob Tru

Re: [Rd] Error in help file for quantile()

2009-03-29 Thread Duncan Murdoch
On 29/03/2009 5:43 PM, Rob Hyndman wrote: For some reason, the help file on quantile() says "Missing values are ignored" in the description of the x argument. Yet this is only true if na.rm=TRUE. I suggest the help file is amended to remove the words "Missing values are ignored". Thanks, I'll f

[Rd] Setting the names attribute of a list?

2009-03-29 Thread Saptarshi Guha
Hello, I have created a vector with 2 elements(see code below) I am calling this function many thousands of times (hundreds of thousands) after some time i get *** caught segfault *** address 0x5, cause 'memory not mapped' However, if i dont set the R_NamesSymbol, I do not get any such error. Am I

Re: [Rd] Setting the names attribute of a list?

2009-03-29 Thread Saptarshi Guha
Much thanks. I was protecting the pointer and not what it was pointing to. The reason I wasn't protecting kxp,usar was because the R external manual mentioned 5.9.1 Handling the effects of garbage collection "Protecting an R object automatically protects all the R objects pointed to in the corresp

[Rd] CTRL-C during .Call causes R to quit to command line

2009-03-29 Thread Saptarshi Guha
Hello, During a .Call e.g while(TRUE){ value <-rhsqnextKVR(rdr) ## has .Call in this function if(is.null(value)) break; } if I press CTRL-C, R exits straight to the command line. Q: How can I prevent this? I should point out that my library uses JNI, so I'm not sure if that is causing i