[Rd] compile 2.4.1 for linux on power cpus

2007-03-14 Thread Andrew Ferris
Hello, I've been asked to get R (2.4.1) installed on a IBM p570 server. This is a server with power CPUs and is running SLES 10. It currently has 12GB of RAM so I'd like to make sure I have the 64 bit version of R so as to take advantage of the extra memory. Since it's a power CPU server that m

Re: [Rd] compile 2.4.1 for linux on power cpus

2007-03-14 Thread Peter Dalgaard
Andrew Ferris wrote: > Hello, > > I've been asked to get R (2.4.1) installed on a IBM p570 server. This is a > server with power CPUs and is running SLES 10. It currently has 12GB of RAM > so I'd like to make sure I have the 64 bit version of R so as to take > advantage of the extra memory. Sinc

Re: [Rd] compile 2.4.1 for linux on power cpus

2007-03-14 Thread Andrew Ferris
Thank you for the reply Peter. I've compiled R from source using the following: ./configure --host=powerpc64-power5-linux-gnu --build=powerpc64-power5-linux-gnu '--with-blas=-framework blas-3.1.0-11' and after I've made R I get this: > .Machine$sizeof.pointer [1] 4 meanwhile uname -a prints

Re: [Rd] compile 2.4.1 for linux on power cpus

2007-03-14 Thread Peter Dalgaard
Andrew Ferris wrote: > Thank you for the reply Peter. > > I've compiled R from source using the following: > > ./configure --host=powerpc64-power5-linux-gnu > --build=powerpc64-power5-linux-gnu '--with-blas=-framework blas-3.1.0-11' > > and after I've made R I get this: > > >> .Machine$sizeof.

Re: [Rd] compile 2.4.1 for linux on power cpus

2007-03-14 Thread Andrew Ferris
Peter, First off, as you may have guessed, I don't compile many 64 bit programs so thanks again for the help. I'll revert back to powerpc64-unknown-linux-gnu which is the default for -build and -host. Here's the gcc information [hostname]:/ # which gcc /usr/bin/gcc [hostname]:/ # gcc -dumpmachi

[Rd] methods package PROTECT "bug"

2007-03-14 Thread Seth Falcon
Hi, src/library/methods/src/methods_list_dispatch.c has the following code which is part of the definition of R_dispatchGeneric: /* get its class */ SEXP arg; int check_err; PROTECT(arg = R_tryEval(arg_sym, ev, &check_err)); if(check_err)

Re: [Rd] compile 2.4.1 for linux on power cpus

2007-03-14 Thread Peter Dalgaard
Andrew Ferris wrote: > Peter, > > First off, as you may have guessed, I don't compile many 64 bit programs so > thanks again for the help. I'll revert back to powerpc64-unknown-linux-gnu > which is the default for -build and -host. > > Here's the gcc information > [hostname]:/ # which gcc > /usr/

Re: [Rd] compile 2.4.1 for linux on power cpus

2007-03-14 Thread Prof Brian Ripley
On Thu, 15 Mar 2007, Peter Dalgaard wrote: > Andrew Ferris wrote: >> Peter, >> >> First off, as you may have guessed, I don't compile many 64 bit programs so >> thanks again for the help. I'll revert back to powerpc64-unknown-linux-gnu >> which is the default for -build and -host. >> >> Here's t

[Rd] cannot delete the last column of a dataframe using "[<-" (PR#9565)

2007-03-14 Thread hsiu-khuern . tang
Hi, If df is a dataframe, its last column can't be deleted using "[<-", but other columns can be deleted this way. Example: > (df <- df0 <- data.frame(x = 1:3, y = 4:6, z = 7:9)) x y z 1 1 4 7 2 2 5 8 3 3 6 9 > df[, "z"] <- NULL Error in x[[jj]] : subscript out of bounds > df[, 3] <- NULL Erro

[Rd] allocVector reference

2007-03-14 Thread Matthew Dowle
Hi, I'm trying to write a function to return an R vector which points directly to a contiguous subset of another vector, without taking a copy. Since SEXPREC is a header followed by the data, rather than the header plus a pointer to the data, I'm not sure what I'm trying to do is possible. Is t