[Rd] R.app data editor crashes with empty data frame (PR#13239)

2008-11-03 Thread jbonsdorff
Full_Name: Juhani Bonsdorff Version: 2.8.0 OS: OS X Leopard 10.5.5 Submission from: (NULL) (91.153.255.102) Installed the latest R.app (v1.26, R version 2.8.0) binary package from CRAN. The GUI data editor crashes when applied to an empty data frame: entering df - edit(data.frame()) the editor

[Rd] sort returns a wrong index (PR#13242)

2008-11-03 Thread bert . tijhuis
Full_Name: Bert Tijhuis Version: 2.8.0 OS: MS-Windows Submission from: (NULL) (217.140.7.52) xd [1] 0.5 -1.0 0.2 NA -3.0 1.0 2.0 NA 2.0 sort(xd, index=T)$ix [1] 4 2 3 1 5 6 7 And in my believe it should be 5 2 3 1 6 7 8 4 9 This was function well in R 2.7.2 Good luck,

Re: [Rd] sort returns a wrong index (PR#13242)

2008-11-03 Thread Prof Brian Ripley
The default for na.last in sort() is NA (unlike sort.list): sort.list(xd, na.last=NA) [1] 4 2 3 1 5 6 7 so the answer is correct (and the same as given by 2.7.2). On Mon, 3 Nov 2008, [EMAIL PROTECTED] wrote: Full_Name: Bert Tijhuis Version: 2.8.0 OS: MS-Windows Submission from: (NULL)

Re: [Rd] row.names(data.frame(matrixWithDimnames)) depends on first rowname being or not. (PR#13230)

2008-11-03 Thread Prof Brian Ripley
On Thu, 30 Oct 2008, [EMAIL PROTECTED] wrote: Full_Name: Bill Dunlap Version: R version 2.9.0 Under development (unstable) (2008-10-29 r46795) OS: Linux Submission from: (NULL) (76.28.245.14) When data.frame() is given a matrix with rownames, then the type of the output row names depends on

Re: [Rd] R 2.8.0 qqnorm produces error with object of class zoo?

2008-11-03 Thread Whit Armstrong
sorry, for joining this thread so late. I've just upgraded to R2.8.0 and was hit with the same issue immediately in my fts package. Has any consensus been reached about how to deal with this issue? Do I understand correctly that the change to use: [sort.c: 592] PROTECT(call =

Re: [Rd] row.names(data.frame(matrixWithDimnames)) depends on first (PR#13244)

2008-11-03 Thread ripley
On Thu, 30 Oct 2008, [EMAIL PROTECTED] wrote: Full_Name: Bill Dunlap Version: R version 2.9.0 Under development (unstable) (2008-10-29 r46795) OS: Linux Submission from: (NULL) (76.28.245.14) When data.frame() is given a matrix with rownames, then the type of the output row names depends

Re: [Rd] gfortran optimization problems

2008-11-03 Thread Mike Prager
Dave Roberts [EMAIL PROTECTED] wrote: I have a routine in package labdsv that calls a FORTRAN subroutine. Recently, I was informed that it sometimes gives different results on a PC and Mac, and that the PC version is clearly wrong. I tested it on linux (because I don't have a PC), and I

Re: [Rd] R CMD check with Matlab and perl?

2008-11-03 Thread Paul Gilbert
Spencer I do something a bit like this using make, and some R like directory organization, to do unit testing of code for installing/checking databases. The tests/ and an examples/ directory I added are fairly straightforward. The fancier R things, like parsing examples out of Rd files, and

Re: [Rd] R CMD check with Matlab and perl?

2008-11-03 Thread Spencer Graves
Dear Paul: in line Paul Gilbert wrote: Spencer I do something a bit like this using make, and some R like directory organization, to do unit testing of code for installing/checking databases. The tests/ and an examples/ directory I added are fairly straightforward. The fancier R things,

Re: [Rd] A question about the API mkchar()

2008-11-03 Thread 王永智
Hi, Simon Thanks for your elaborated instruction on mkCharCE. Concerning the UTF-8 Encoding, mkCharCE(X, CE_UTF8) is the correct way in parsing the Unicode string. However, I met another question: My program logic is intended to read the content of a text file r.tmp, which is encoded

[Rd] Bug in Version 2.80? (PR#13243)

2008-11-03 Thread renger
Hi When I have a plot under Windows and want to save it as a ps or jpg using right click, the window for choosing the directory opens. But if I want to choose a directory R freezes. This happens on my XP notebook as well on my P x64 machine. Renger ___ Renger van

Re: [Rd] A question about the API mkchar()

2008-11-03 Thread Prof Brian Ripley
1) 2.7.0 is rather old, and you were asked to update your R before posting. 2) No file was attached. But how to handle encodings is in the 'R Internals' manual. This is a tricky, advanced, topic in C-level R programming. It is your responsibility, not ours, to get yourself up to the level

[Rd] possible tcltk event loop problem

2008-11-03 Thread John Fox
Dear list members, Rich Heiberger reported to me last week that the Messages window in the Rcmdr GUI was freezing -- that is, messages posted to this window didn't appear -- under Windows and R 2.8.0. I was able to confirm this problem on three Windows systems, one using Vista and the other two

Re: [Rd] possible tcltk event loop problem

2008-11-03 Thread Peter Dalgaard
John Fox wrote: Dear list members, Rich Heiberger reported to me last week that the Messages window in the Rcmdr GUI was freezing -- that is, messages posted to this window didn't appear -- under Windows and R 2.8.0. I was able to confirm this problem on three Windows systems, one using Vista

Re: [Rd] possible tcltk event loop problem

2008-11-03 Thread John Fox
Dear Peter, -Original Message- From: Peter Dalgaard [mailto:[EMAIL PROTECTED] Sent: November-03-08 4:58 PM To: John Fox Cc: r-devel@r-project.org; 'Richard M. Heiberger'; 'Erich Neuwirth'; 'Prof Brian Ripley'; 'Duncan Murdoch' Subject: Re: [Rd] possible tcltk event loop problem

Re: [Rd] Bug in Version 2.80? (PR#13243)

2008-11-03 Thread Duncan Murdoch
On 03/11/2008 4:00 AM, [EMAIL PROTECTED] wrote: Hi When I have a plot under Windows and want to save it as a ps or jpg using right click, the window for choosing the directory opens. But if I want to choose a directory R freezes. This happens on my XP notebook as well on my P x64 machine. I