Re: [Rd] Catching warning message(stdout) from C

2008-05-13 Thread Prof Brian Ripley
On Tue, 13 May 2008, Maarten van Iterson wrote: I'm using the 'pnt' C function from Rmath library in some C-code. So I assume you compiled against -lRmath? How can I catch the warning message: "full precision was not achieved in 'pnt'" in R. I call the function using the .C(). (options(warn=

[Rd] Catching warning message(stdout) from C

2008-05-13 Thread Maarten van Iterson
I'm using the 'pnt' C function from Rmath library in some C-code. How can I catch the warning message: "full precision was not achieved in 'pnt'" in R. I call the function using the .C(). (options(warn=-1) didn't work) Thanks in advance -- Maarten van Iterson Center for Human and Clinical Geneti

[Rd] doc buglet / bug: row / col as.factor requires dimnames

2008-05-13 Thread Martin Morgan
col(matrix(0, 5, 5), as.factor=TRUE) fails > col(matrix(0, 5, 5), as.factor=TRUE) Error in factor(.Internal(col(dim(x))), labels = colnames(x)) : invalid labels; length 0 should be 1 or 5 when the matrix has no dimnames. This is not as advertised. I would have expected the equivalent of facto

Re: [Rd] Advice on compiling R using Intel Compilers? Btw: -c99 is deprecated

2008-05-13 Thread Bjørn-Helge Mevik
"Joris @ VU" <[EMAIL PROTECTED]> writes: > 4: ./configure --enable-R-shlib [...] > 2) Did I setup my config.site right for my system (assuming I want to > use Intel's MKL using Shared-BLAS), is it suboptimal or plain wrong? > And how can I easily test this? I don't think configure will use the ex

Re: [Rd] k means

2008-05-13 Thread friedrich . leisch
> On Mon, 12 May 2008 19:24:55 +0200, > cgenolin (c) wrote: > Hi the devel list, > I am using K means with a non standard distance. As far as I see, the > function kmeans is able to deal with 4 differents algorithm, but not > with a user define distance. > In addition, kmeans

[Rd] 'cat' and 'write' as generic, just like 'c', 'cbind' etc?

2008-05-13 Thread Sklyar, Oleg (MI London)
Dear list: is there any good reason why 'c', 'cbind', 'rbind' etc (all defined as 'function(..., )') are generic and thus methods can be defined whereas such quite useful functions like 'cat' and 'write' are not? Would it not be reasonable to add such functionality? This would allow to define S3

Re: [Rd] (PR#11281) Bug in R 2.7 for over long lines

2008-05-13 Thread edd
On 13 May 2008 at 09:46, Soeren Sonnenburg wrote: | On Tue, 2008-05-13 at 09:01 +0200, Martin Maechler wrote: | > > "BDR" == Prof Brian Ripley <[EMAIL PROTECTED]> | > > on Tue, 13 May 2008 07:32:43 +0100 (BST) writes: | > | > BDR> This example does not crash in R 2.7.0, R-patched

Re: [Rd] OS X / R.h

2008-05-13 Thread Prof Brian Ripley
On Tue, 13 May 2008, Adam Hinz wrote: Hey, I have a question about including the R framework in a file. I'm running OS X 10.5.2. When I attempt to use: #include And compile I get the following error: /Library/Frameworks/R.framework/Headers/R.h:40:21: error: Rconfig.h: No such file or director

Re: [Rd] Unable to restore saved data in .RData (PR#11455)

2008-05-13 Thread Prof Brian Ripley
Sorry, there is nothing to reproduce here. The pertinent error message is not the one you quote in your subject line but Error in file.exists(name) : unsupported conversion in 'filenameToWchar' At face value that means that iconv does not know about your locale. That's possible, but it does k

[Rd] OS X / R.h

2008-05-13 Thread Adam Hinz
Hey, I have a question about including the R framework in a file. I'm running OS X 10.5.2. When I attempt to use: #include And compile I get the following error: /Library/Frameworks/R.framework/Headers/R.h:40:21: error: Rconfig.h: No such file or directory /Library/Frameworks/R.framework/Hea

[Rd] Unable to restore saved data in .RData (PR#11455)

2008-05-13 Thread ericwong001
Full_Name: Eric Wong Version: 2.7 OS: Windows XP SP2 Submission from: (NULL) (203.198.252.239) I installed R software version 2.7 onto my computer (Windows XP SP2 English). The installation was smooth without problem. However, R program crashed with the following error message: Error in file

Re: [Rd] (PR#11281) Bug in R 2.7 for over long lines (crasher+proposed fix!)

2008-05-13 Thread Roger Bivand
On Tue, 13 May 2008, [EMAIL PROTECTED] wrote: "BDR" == Prof Brian Ripley <[EMAIL PROTECTED]> on Tue, 13 May 2008 07:32:43 +0100 (BST) writes: BDR> This example does not crash in R 2.7.0, R-patched nor BDR> R-devel (r45677) for me (x86_64 F8 Linux.) It also BDR> does not crash wit

Re: [Rd] (PR#11281) Bug in R 2.7 for over long lines

2008-05-13 Thread r-ml
On Tue, 2008-05-13 at 09:01 +0200, Martin Maechler wrote: > > "BDR" =3D=3D Prof Brian Ripley <[EMAIL PROTECTED]> > > on Tue, 13 May 2008 07:32:43 +0100 (BST) writes: >=20 > BDR> This example does not crash in R 2.7.0, R-patched nor > BDR> R-devel (r45677) for me (x86_64 F8 Linux

Re: [Rd] (PR#11281) Bug in R 2.7 for over long lines

2008-05-13 Thread Martin Maechler
> "SS" == Soeren Sonnenburg <[EMAIL PROTECTED]> > on Tue, 13 May 2008 08:17:23 +0200 writes: SS> On Mon, 2008-05-12 at 08:39 -0400, Duncan Murdoch wrote: >> On 5/10/2008 5:20 PM, [EMAIL PROTECTED] wrote: > On Sat, >> 2008-05-10 at 11:19 +0100, Prof Brian Ripley wrote: >>

Re: [Rd] (PR#11281) Bug in R 2.7 for over long lines (crasher+proposed fix!)

2008-05-13 Thread Antonio, Fabio Di Narzo
2008/5/13 <[EMAIL PROTECTED]>: >> "BDR" == Prof Brian Ripley <[EMAIL PROTECTED]> >> on Tue, 13 May 2008 07:32:43 +0100 (BST) writes: > >BDR> This example does not crash in R 2.7.0, R-patched nor >BDR> R-devel (r45677) for me (x86_64 F8 Linux.) It also >BDR> does not crash

Re: [Rd] (PR#11281) Bug in R 2.7 for over long lines (crasher+proposed fix!)

2008-05-13 Thread maechler
> "BDR" == Prof Brian Ripley <[EMAIL PROTECTED]> > on Tue, 13 May 2008 07:32:43 +0100 (BST) writes: BDR> This example does not crash in R 2.7.0, R-patched nor BDR> R-devel (r45677) for me (x86_64 F8 Linux.) It also BDR> does not crash with the CRAN build of R 2.7.0 on