Re: [Rd] R 64 on Intel Mac check problem

2008-03-26 Thread Bill Northcott
On 27/03/2008, at 11:51 AM, Simon Urbanek wrote: > Yes, the gcc-4.2 is known to be broken for x86_64 as you describe > above (or in fact it miscompiles a few other things, too). > Interestingly llvm-gcc-4.2 suffers from the same problem. That is > the reason why the 64-bit binaries are curren

Re: [Rd] R 64 on Intel Mac check problem

2008-03-26 Thread Simon Urbanek
On Mar 26, 2008, at 8:05 PM, Bill Northcott wrote: > On 26/03/2008, at 10:00 PM, Georgios wrote: >> I have installed gcc 4.2 and gfortran 4.2 from the available sources >> on the >> web page and am using the copy and paste guide on the page. >> >> Now everything seems to be going fine until the p

Re: [Rd] R 64 on Intel Mac check problem

2008-03-26 Thread Bill Northcott
On 26/03/2008, at 10:00 PM, Georgios wrote: > I have installed gcc 4.2 and gfortran 4.2 from the available sources > on the > web page and am using the copy and paste guide on the page. > > Now everything seems to be going fine until the point where the R > packages > are tested. In particular

[Rd] Google Summer of Code: cross-listing

2008-03-26 Thread Ben Bolker
Dear R/Google Summer of Code people, NESCent (the National Evolutionary Synthesis Center) is a Google SoC organization and has a couple of R-specific projects on its list (I'm one of the mentors), specifically for phylogenetic/evolutionary biology problems in R (in fact, the first two proj

Re: [Rd] suppressing 'download.file' progress window

2008-03-26 Thread Roger D. Peng
Thanks! The patch to src/modules/internet/internet.c in r44937 was just what I was looking for. -roger Prof Brian Ripley wrote: > On Wed, 26 Mar 2008, Roger D. Peng wrote: > >> In Windows, 'download.file' pops up a separate window indicating the >> progress of the download (even when 'quiet =

Re: [Rd] suppressing 'download.file' progress window

2008-03-26 Thread Prof Brian Ripley
On Wed, 26 Mar 2008, Roger D. Peng wrote: > In Windows, 'download.file' pops up a separate window indicating the > progress of the download (even when 'quiet = TRUE'). This is useful and > informative when downloading a single (large) file. However, when > downloading multiple (smaller) files

[Rd] suppressing 'download.file' progress window

2008-03-26 Thread Roger D. Peng
In Windows, 'download.file' pops up a separate window indicating the progress of the download (even when 'quiet = TRUE'). This is useful and informative when downloading a single (large) file. However, when downloading multiple (smaller) files in sucession, the constant flashing of the progr

Re: [Rd] S4 slot with NA default

2008-03-26 Thread Prof Brian Ripley
Several people have suggested as.numeric(NA). That evaluates to NA_real_, so provided you don't want to support R < 2.5.0 it is (slightly) more efficient in several ways to use NA_real_ . On Wed, 26 Mar 2008, Roger Bivand wrote: > On Wed, 26 Mar 2008, Robin Hankin wrote: > >> Hi >> >> How do I

Re: [Rd] S4 slot with NA default

2008-03-26 Thread Christian Kohler
Hi Robin, you could try this: > setClass("foo", representation=representation(x="numeric"),prototype=list(x=as.numeric(NA))) > test<-new("foo") > test >An object of class "foo" >Slot "x": >[1] NA Cheers, Christian Robin Hankin wrote: > Hi > > How do I specify an S4 class with a slot that is po

Re: [Rd] S4 slot with NA default

2008-03-26 Thread Roger Bivand
On Wed, 26 Mar 2008, Robin Hankin wrote: > Hi > > How do I specify an S4 class with a slot that is potentially numeric, > but NA > by default? I want the slot to be NA until I calculate its value > (an expensive operation, not needed for all applications). When > its value is > known, I wil

Re: [Rd] S4 slot with NA default

2008-03-26 Thread Peter Dalgaard
Robin Hankin wrote: > Hi > > How do I specify an S4 class with a slot that is potentially numeric, > but NA > by default? I want the slot to be NA until I calculate its value > (an expensive operation, not needed for all applications). When > its value is > known, I will create a new ob

Re: [Rd] S4 slot with NA default

2008-03-26 Thread Simon Urbanek
On Mar 26, 2008, at 12:04 PM, Robin Hankin wrote: > Hi > > How do I specify an S4 class with a slot that is potentially numeric, > but NA > by default? I want the slot to be NA until I calculate its value > (an expensive operation, not needed for all applications). When > its value is > kno

Re: [Rd] S4 slot with NA default

2008-03-26 Thread Vladimir Dergachev
On Wednesday 26 March 2008 12:04:11 pm Robin Hankin wrote: > Hi > > How do I specify an S4 class with a slot that is potentially numeric, > but NA > by default? I want the slot to be NA until I calculate its value > (an expensive operation, not needed for all applications). When > its value

[Rd] S4 slot with NA default

2008-03-26 Thread Robin Hankin
Hi How do I specify an S4 class with a slot that is potentially numeric, but NA by default? I want the slot to be NA until I calculate its value (an expensive operation, not needed for all applications). When its value is known, I will create a new object with the correct value inserte

Re: [Rd] cut.Date and cut.POSIXt problem

2008-03-26 Thread Marc Schwartz
Martin Maechler wrote: >> "RDP" == Roger D Peng <[EMAIL PROTECTED]> >> on Wed, 26 Mar 2008 09:18:19 -0400 writes: > > RDP> I have applied these patches to R-devel and in my limited testing > they appear to > RDP> work as desired. I have to say that I never ran into the probl

Re: [Rd] cut.Date and cut.POSIXt problem

2008-03-26 Thread Martin Maechler
> "RDP" == Roger D Peng <[EMAIL PROTECTED]> > on Wed, 26 Mar 2008 09:18:19 -0400 writes: RDP> I have applied these patches to R-devel and in my limited testing they appear to RDP> work as desired. I have to say that I never ran into the problem these patches RDP> were

Re: [Rd] cut.Date and cut.POSIXt problem

2008-03-26 Thread Roger D. Peng
I have applied these patches to R-devel and in my limited testing they appear to work as desired. I have to say that I never ran into the problem these patches were meant to solve so I may not be the best person to do the testing. -roger Marc Schwartz wrote: > Hi all, > > Apologies for the d

Re: [Rd] choose fails a fundamental property of binomial coefficients (PR#11035)

2008-03-26 Thread maechler
> "MM" == Martin Maechler <[EMAIL PROTECTED]> > on Wed, 26 Mar 2008 11:02:37 +0100 (CET) writes: > "JL" == Jerry Lewis <[EMAIL PROTECTED]> > on Wed, 26 Mar 2008 05:10:04 +0100 (CET) writes: JL> Full_Name: Jerry W. Lewis Version: 2.7.0 (2008-03-23 JL> r44847) OS

Re: [Rd] DLL problem

2008-03-26 Thread Uwe Ligges
Carson, John wrote: > I am using R version 2.6.2 (2008-02-08) on an XP Pro (version 2002 SP2). When > I try to load the R library 'gtools', I get the following error: > >> library(gtools) > Error in .Call("R_lazyLoadDBfetch", key, file, compressed, hook, PACKAGE = > "base") : > C symbol nam

Re: [Rd] choose fails a fundamental property of binomial coefficients (PR#11035)

2008-03-26 Thread maechler
> "JL" == Jerry Lewis <[EMAIL PROTECTED]> > on Wed, 26 Mar 2008 05:10:04 +0100 (CET) writes: JL> Full_Name: Jerry W. Lewis Version: 2.7.0 (2008-03-23 JL> r44847) OS: Windows XP Professional Submission from: JL> (NULL) (71.184.230.48) JL> choose(n,k) = choose(n,n-k) is

[Rd] as.POSIXct/as.POSIXlt generics

2008-03-26 Thread Sklyar, Oleg (MI London)
Hi, I am trying to define the as.POSIXct as an S4 method for one of my classes. Trying to define a generic, I am getting an error that it is already differently defined in base. However, if I query for it, there is no definition. Being in base, I also cannot really import it. If I define methods w

Re: [Rd] Incorrect behavior in 64-bit version (PR#11034) (solved)

2008-03-26 Thread Lodewijk Bonebakker
Peter, thank you for your reply, the provided link had the answer: The problem is the Sun cc compiler not following the C99 syntax standard. Adding -xc99 to compiler flags fixed the problem. My incorrect assumption was that configure.in would contain most of the recommended flags for compila

[Rd] choose fails a fundamental property of binomial coefficients (PR#11035)

2008-03-26 Thread Jerry . Lewis
Full_Name: Jerry W. Lewis Version: 2.7.0 (2008-03-23 r44847) OS: Windows XP Professional Submission from: (NULL) (71.184.230.48) choose(n,k) = choose(n,n-k) is not satisfied if either 1. n is a negative integer with k a positive integer (due to automatically returning 0 for n-k<0) 2. n is not a

[Rd] Misc/List Search Path from keyboard (PR#11036)

2008-03-26 Thread richardwreed
Full_Name: Richard Reed Version: 2.6.2 OS: MS Windows XP Pro Submission from: (NULL) (76.121.170.35) Pressing Alt-M+s doesn't search path. It just generates another ">". It does this in "vanilla" too. However, Alt-M+click "list search path" does work. Note that when I press Alt-M (and the "Misc"

Re: [Rd] R 64 on Intel Mac check problem

2008-03-26 Thread Prof Brian Ripley
On Tue, 25 Mar 2008, Georgios Marentakis wrote: > many thanks for the response. > I tried compiling without optimization and it still gives me the same > problem. > Would you think it is something related to the package? Could it be that I > should use another version of the particular package th