Re: [Rd] 32- / 64-bit R query

2006-08-18 Thread Luke Tierney
One way is to look at .Machine$sizeof.pointer -- 4 on 32-bit and 8 on 64-bit. luke On Fri, 18 Aug 2006, McGehee, Robert wrote: > Hello, > Is there a way to query whether R has been compiled using 32- or > 64-bits? A certain memory-intensive simulation will need to be optimized > differently depe

Re: [Rd] 32- / 64-bit R query

2006-08-18 Thread Prof Brian Ripley
.Machine$sizeof.pointer is 4 or 8. On Fri, 18 Aug 2006, McGehee, Robert wrote: > Hello, > Is there a way to query whether R has been compiled using 32- or > 64-bits? A certain memory-intensive simulation will need to be optimized > differently depending on the memory constraints of the architectu

[Rd] 32- / 64-bit R query

2006-08-18 Thread McGehee, Robert
Hello, Is there a way to query whether R has been compiled using 32- or 64-bits? A certain memory-intensive simulation will need to be optimized differently depending on the memory constraints of the architecture such that it will run quickly in 64-bits, and will run within ~3GB under 32-bits. And

Re: [Rd] S4 'object is not subsettable' in prototype

2006-08-18 Thread Martin Maechler
> "Seth" == Seth Falcon <[EMAIL PROTECTED]> > on Fri, 18 Aug 2006 09:54:54 -0700 writes: Seth> Martin Maechler <[EMAIL PROTECTED]> writes: >> I agree you've found an "infelicity" in the current setup, >> since >> >> > setClass("A", representation(x="numeric"))

Re: [Rd] S4 'object is not subsettable' in prototype

2006-08-18 Thread Seth Falcon
Martin Maechler <[EMAIL PROTECTED]> writes: > I agree you've found an "infelicity" in the current setup, > since > > > setClass("A", representation(x="numeric")) > [1] "A" > > getClass("A")@prototype > > attr(,"x") > numeric(0) > > length(getClass("A")@prototype) > [1] 1 > > getC

Re: [Rd] Pb with contrib.url() (PR#9131)

2006-08-18 Thread Seth Falcon
Simon Urbanek <[EMAIL PROTECTED]> writes: > Yes, I see, thanks. Given that we supply universal binaries (=should > work on all supported archs), we could define mac.binary as macosx/ > universal and mac.binary.xxx as macosx/xxx. The default would still > be mac.binary. I like this idea. > I'

Re: [Rd] Pb with contrib.url() (PR#9131)

2006-08-18 Thread Simon Urbanek
On Aug 8, 2006, at 2:52 AM, Prof Brian Ripley wrote: > On Mon, 7 Aug 2006, Simon Urbanek wrote: > >> Herve, >> >> On Aug 7, 2006, at 11:34 AM, [EMAIL PROTECTED] wrote: >> >>> Recently I needed to download a few R packages for Unix, Windows >>> and Mac OS X. The idea was to put them all together o

Re: [Rd] How to use R and add-on packages as library in C/C++

2006-08-18 Thread Prof Brian Ripley
This is indeed in the manual you mention. To use R functions and not just standalone libRmath, you need to embed R. On Fri, 18 Aug 2006, Pai-Hsien Hung wrote: > Hi, > I have a question for building a standalone exe file via C/C++ with R > and add-on packages in Windows (Compiler is VC). I

Re: [Rd] S4 'object is not subsettable' in prototype

2006-08-18 Thread Martin Maechler
> "Martin" == Martin Morgan <[EMAIL PROTECTED]> > on Thu, 17 Aug 2006 15:35:53 -0700 writes: Martin> Extracting prototype structure apparently relies on list properties of Martin> the earlier S4 implementation. Martin> Martin >> setClass("A", representation(x="numeri

Re: [Rd] not a typo in list.Rd

2006-08-18 Thread Allen S. Rout
Martin Maechler <[EMAIL PROTECTED]> writes: > I think I'd like to keep fostering a culture where this is known. > It's such a beatiful useful short concise language element. If you > don't know, nowadays there's Wikipedia where you can find it. or a dictionary. http://dictionary.reference.com/b

Re: [Rd] not a typo in list.Rd

2006-08-18 Thread Romain Francois
Le 18.08.2006 15:56, Gabor Grothendieck a écrit : > On 8/18/06, Martin Maechler <[EMAIL PROTECTED]> wrote: > >>> "Gregor" == Gregor Gorjanc <[EMAIL PROTECTED]> >>> on Fri, 18 Aug 2006 14:48:40 +0200 writes: >>> >>Gregor> Hin-Tak Leung wrote: >>>> Gregor Gor

Re: [Rd] not a typo in list.Rd

2006-08-18 Thread Gabor Grothendieck
On 8/18/06, Martin Maechler <[EMAIL PROTECTED]> wrote: > > "Gregor" == Gregor Gorjanc <[EMAIL PROTECTED]> > > on Fri, 18 Aug 2006 14:48:40 +0200 writes: > >Gregor> Hin-Tak Leung wrote: >>> Gregor Gorjanc wrote: >>>> Hello! >>>> >>>> There is a tiny typo in list.Rd. >

[Rd] How to use R and add-on packages as library in C/C++

2006-08-18 Thread Pai-Hsien Hung
Hi, I have a question for building a standalone exe file via C/C++ with R and add-on packages in Windows (Compiler is VC). It may looks like ... #include #include int main() { double *x, *y, z; // ... (Variables initial) z = ar( x, ...); // In this example, I want use the ar (tim

Re: [Rd] not a typo in list.Rd

2006-08-18 Thread Martin Maechler
> "Gregor" == Gregor Gorjanc <[EMAIL PROTECTED]> > on Fri, 18 Aug 2006 14:48:40 +0200 writes: Gregor> Hin-Tak Leung wrote: >> Gregor Gorjanc wrote: >>> Hello! >>> >>> There is a tiny typo in list.Rd. >>> >>> Index: R/src/library/base/man/list.Rd >>> ==

Re: [Rd] Small typo in list.Rd

2006-08-18 Thread Kevin B. Hendricks
Hi, iff is shorthand typically used in mathematical proofs. You have probably found the one group (users of R) that have the highest probability of knowing the meaning of "iff". That said, I agree that it should not be used in official documentation. It should be replaced with "if and o

Re: [Rd] Small typo in list.Rd

2006-08-18 Thread Gregor Gorjanc
Hin-Tak Leung wrote: > Gregor Gorjanc wrote: >> Hello! >> >> There is a tiny typo in list.Rd. >> >> Index: R/src/library/base/man/list.Rd >> === >> --- ../man/list.Rd (revision 38909) >> +++ ../man/list.Rd (working copy) >> @

Re: [Rd] Small typo in list.Rd

2006-08-18 Thread Hin-Tak Leung
Gregor Gorjanc wrote: > Hello! > > There is a tiny typo in list.Rd. > > Index: R/src/library/base/man/list.Rd > === > --- ../man/list.Rd (revision 38909) > +++ ../man/list.Rd (working copy) > @@ -59,7 +59,7 @@ >inconsis

Re: [Rd] sort changes datatype of operand

2006-08-18 Thread Prof Brian Ripley
On Fri, 18 Aug 2006, Henrik Bengtsson wrote: Commenting on a much earlier posting than mine! > On 8/18/06, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: [...] > > On Thu, 17 Aug 2006, Brahm, David wrote: > > > > > On 8/3/2006 10:34 AM, <[EMAIL PROTECTED]> noted that, > > > starting with R-2.3.0,

Re: [Rd] sort changes datatype of operand

2006-08-18 Thread Henrik Bengtsson
On 8/18/06, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > Please do note that this too is a reading error. The documentation for > rowsum() says > >group: a vector giving the grouping, with one element per row of > 'x'. > > R has used 'group' as if it were as.vector(group), as it was

Re: [Rd] sort changes datatype of operand

2006-08-18 Thread Prof Brian Ripley
Please do note that this too is a reading error. The documentation for rowsum() says group: a vector giving the grouping, with one element per row of 'x'. R has used 'group' as if it were as.vector(group), as it was entitled to do. If you do not want that, give a _vector_ with th