Re: [Rd] [R] New errors with difftime()-objects in 2.11.1 (was Re: Request: difftime method for cut())

2010-06-22 Thread Peter Dalgaard
Gustaf Rydevik wrote: > Oh, I forgot to mention that the workaround of using as.double (or > as.numeric) works fine, and I've done that. > It's just that it can take quite a while (as in several hours) to > figure out that the reason for the error is that you have to force > difftime objects to be

Re: [Rd] seek() and gzfile() on 32-bit R2.12.0 in linux

2010-06-22 Thread Matt Shotwell
I was able to reproduce this bug. After some investigating, it's clearly localized to gztell (a zlib function), and the z_off_t type. However, there may be a broader cross-compiling problem. I don't know what procedure Brandon used to compile the 32 bit version (I used the gcc -m32 flag), but we sh

Re: [Rd] constrOptim( ): conflict between help page and code

2010-06-22 Thread Ravi Varadhan
Dear R-devel, I have re-worked the `constrOptim' function extensively to fix some bugs, and also to provide some extended functionality. Please find attached the patch (with comments on the bug fixes and improvements). I am also attaching a "test" file that shows the difference between the "

Re: [Rd] seek() and gzfile() on 32-bit R2.12.0 in linux

2010-06-22 Thread Matt Shotwell
You used file to open "ex.gz", which ought to work, but relies on do_url to automatically detect that the file is a gzip file. It's a long shot, but you could try to verify that the file is a valid gzip file (R checks that the first two bytes == "\x1f\x8b") and try the gzfile function on the 32 bit

Re: [Rd] [R] New errors with difftime()-objects in 2.11.1 (was Re: Request: difftime method for cut())

2010-06-22 Thread Gustaf Rydevik
On Tue, Jun 22, 2010 at 7:50 PM, David Winsemius wrote: > > On Jun 22, 2010, at 1:33 PM, Gustaf Rydevik wrote: > Cannot help you there, but have you looked at the help page for difftime? > > "The as.double method returns the numeric value expressed in the specified > units. Using units = "auto" m

[Rd] New errors with difftime()-objects in 2.11.1 (was Re: Request: difftime method for cut())

2010-06-22 Thread Gustaf Rydevik
On Thu, Jun 10, 2010 at 3:39 PM, Gustaf Rydevik wrote: > Hi all, > > The recent change in 2.11 that made as.numeric() return false on > difftime-objects broke some of my code that calculated age classes of > individuals using cut(). While this was no big thing to fix for me, it > might be wise > t

[Rd] seek() and gzfile() on 32-bit R2.12.0 in linux

2010-06-22 Thread Brandon Whitcher
I have installed both 32-bit and 64-bit versions of R2.12.0 (2010-06-15 r52300) on my Ubuntu 10.04 64-bit system. I observe the following behavior when running the examples from base::connections. There appears to be a problem with seek() on a .gz file when using a 32-bit installation of R2.12.0,

[Rd] Scrolling a tkcanvas non-starter

2010-06-22 Thread Anne George
Hello, Is it possible to scroll a canvas that has a column of listboxes in it? Does scrolling only work with listboxes and text widgets? The following code displays the scrollbar, but - it has no thumb - does not respond to mouse clicks. - the vertical height of the tkcanvas (i.e. column1) i

Re: [Rd] Corrections for the R manual on Solaris

2010-06-22 Thread Dr. David Kirkby
On 06/17/10 12:53 PM, Dr. David Kirkby wrote: There are a few errors in the R manual about Solaris. 1) Firstly you may know that Sun is now owned by Oracle. 2) "(Recent Sun machines are Opterons (‘amd64’) rather than ‘x86’, but 32-bit ‘x86’ executables are the default.) " It's not true to say