Re: [Rd] bus error on calling nmmin

2006-04-13 Thread Prof Brian Ripley
You appear to be trying to call nmmin from a standalone program. You linked against -lR, but failed to initialize R, hence the segfault. nmmin is not a part of R that is made available except to a running R process: it is documented in `Writing R Extensions' for use in R packages. On Thu, 13 Apr

Re: [Rd] Wishlist: 'quietly' argument for .onAttach() / .First.lib()

2006-04-13 Thread Prof Brian Ripley
I carefully did not suggest the use of option 'verbose', as that is used in many other places. In particular, with your proposal, you cannot have the message without a lot of chatter from library() (and although that has a 'verbose' argument, it is often called implicitly, and rarely with that

Re: [Rd] [R] S4 method dispatch matrixOrArray (fwd)

2006-04-13 Thread Gabor Grothendieck
I think a rule is needed that would require that a class not succeed any of its parents on the method list. That way "array" could never come after "vector" and, in general, a parent would never be found prior to any of its descendents. Of course that still does not address the problem that the o

[Rd] bus error on calling nmmin

2006-04-13 Thread David Faden
Hi, I'm trying to get a toy program making use of nmmin to run successfully. I've gotten to the point of compiling. However, when I attempt to run my executable, I guess a bus error. I see that someone else has asked about using nmmin before

Re: [Rd] [R] S4 method dispatch matrixOrArray (fwd)

2006-04-13 Thread John Chambers
What a delicious example! (I'm taking the liberty of sharing it with r-devel, since it raises some good issues.) You have two questions, presumably: 1 - how could the order of the setMethod calls make a difference in the results? 2 - what's causing the infinite loop & how could it be avoided,

Re: [Rd] Wishlist: 'quietly' argument for .onAttach() / .First.lib()

2006-04-13 Thread Paul Roebuck
On Thu, 13 Apr 2006, Liaw, Andy wrote: > From: Bill Dunlap > > > > On Thu, 13 Apr 2006, Prof Brian Ripley wrote: > > > > > On Thu, 13 Apr 2006, Peter Ruckdeschel wrote: > > > > > > > in "Writing R extensions" as well as in the help > > > > to .onAttach(), you mention that one could > > > > use thi

Re: [Rd] Wishlist: 'quietly' argument for .onAttach() / .First.li b()

2006-04-13 Thread Martin Maechler
> "AndyL" == Liaw, Andy <[EMAIL PROTECTED]> > on Thu, 13 Apr 2006 15:41:27 -0400 writes: AndyL> From: Bill Dunlap >> On Thu, 13 Apr 2006, Prof Brian Ripley wrote: >> >> > On Thu, 13 Apr 2006, Peter Ruckdeschel wrote: >> > >> > > Hi R-devels, >> > > >>

Re: [Rd] Wishlist: 'quietly' argument for .onAttach() / .First.li b()

2006-04-13 Thread Liaw, Andy
From: Bill Dunlap > > On Thu, 13 Apr 2006, Prof Brian Ripley wrote: > > > On Thu, 13 Apr 2006, Peter Ruckdeschel wrote: > > > > > Hi R-devels, > > > > > > in "Writing R extensions" as well as in the help > > > to .onAttach(), you mention that one could > > > use this function to issue a start-up

Re: [Rd] Wishlist: 'quietly' argument for .onAttach() / .First.lib()

2006-04-13 Thread Bill Dunlap
On Thu, 13 Apr 2006, Prof Brian Ripley wrote: > On Thu, 13 Apr 2006, Peter Ruckdeschel wrote: > > > Hi R-devels, > > > > in "Writing R extensions" as well as in the help > > to .onAttach(), you mention that one could > > use this function to issue a start-up message/banner > > for the package. > >

Re: [Rd] xmkmf? problem

2006-04-13 Thread Paul Gilbert
Brian Yes cc is empty. Perhaps I should have mentioned that I have set CC=pgcc, to find the new compiler. Should I be setting cc too? Is there a problem if the compiler used for X11 was different? Thanks, Paul Prof Brian Ripley wrote: > On Thu, 13 Apr 2006, Paul Gilbert wrote: > >> I am havi

Re: [Rd] xmkmf? problem

2006-04-13 Thread Prof Brian Ripley
On Thu, 13 Apr 2006, Paul Gilbert wrote: I am having the xmkmf problem below with todays beta, but I also am trying to use an new (PGI 6.1), so lots of other things in my setup may be wrong, and the warning may also be important. Any hints would be appreciated. My guess is that this is from

[Rd] xmkmf? problem

2006-04-13 Thread Paul Gilbert
I am having the xmkmf problem below with todays beta, but I also am trying to use an new (PGI 6.1), so lots of other things in my setup may be wrong, and the warning may also be important. Any hints would be appreciated. Paul _ Red Hat Enterprise Linux AS release 3 (Taroon Update 7) ...

Re: [Rd] Wishlist: 'quietly' argument for .onAttach() / .First.lib()

2006-04-13 Thread Prof Brian Ripley
On Thu, 13 Apr 2006, Peter Ruckdeschel wrote: > Andy Liaw wrote: >> From: Prof Brian Ripley >>> / >> />/ On Thu, 13 Apr 2006, Peter Ruckdeschel wrote: >> />/ >> />/ > Hi R-devels, >> />/ > >> />/ > in "Writing R extensions" as well as in the help >> />/ > to .onAttach(), you mention that one could

Re: [Rd] Wishlist: 'quietly' argument for .onAttach() / .First.lib()

2006-04-13 Thread Peter Ruckdeschel
Andy Liaw wrote: > From: Prof Brian Ripley > >/ > />/ On Thu, 13 Apr 2006, Peter Ruckdeschel wrote: > />/ > />/ > Hi R-devels, > />/ > > />/ > in "Writing R extensions" as well as in the help > />/ > to .onAttach(), you mention that one could > />/ > use this function to issue a start-up message/

Re: [Rd] Calloc : syntax error

2006-04-13 Thread Prof Brian Ripley
On Thu, 13 Apr 2006, Franck Arnaud wrote: > Hi, > I have issue with Calloc : at the compilation step, gcc tells "error : > syntax error before ')' token". > When I use the classical C calloc... free, everything's fine. > Here's the part of code : > a = (double*) Calloc(*n,sizeof(double)); > > when

Re: [Rd] Calloc : syntax error

2006-04-13 Thread Martin Maechler
> "Franck" == Franck Arnaud <[EMAIL PROTECTED]> > on Thu, 13 Apr 2006 17:17:14 +0200 writes: Franck> Hi, I have issue with Calloc : at the compilation Franck> step, gcc tells "error : syntax error before ')' Franck> token". When I use the classical C calloc... free, Fr

[Rd] Calloc : syntax error

2006-04-13 Thread Franck Arnaud
Hi, I have issue with Calloc : at the compilation step, gcc tells "error : syntax error before ')' token". When I use the classical C calloc... free, everything's fine. Here's the part of code : a = (double*) Calloc(*n,sizeof(double)); when i remove this line or replace it with the calloc, it's ok

Re: [Rd] Wishlist: 'quietly' argument for .onAttach() / .First.li b()

2006-04-13 Thread Liaw, Andy
From: Prof Brian Ripley > > On Thu, 13 Apr 2006, Peter Ruckdeschel wrote: > > > Hi R-devels, > > > > in "Writing R extensions" as well as in the help > > to .onAttach(), you mention that one could > > use this function to issue a start-up message/banner > > for the package. > > > > My little wish

Re: [Rd] Wishlist: 'quietly' argument for .onAttach() / .First.lib()

2006-04-13 Thread Prof Brian Ripley
On Thu, 13 Apr 2006, Peter Ruckdeschel wrote: > Hi R-devels, > > in "Writing R extensions" as well as in the help > to .onAttach(), you mention that one could > use this function to issue a start-up message/banner > for the package. > > My little wish for Easter: > > a 'quietly'-type argument for

Re: [Rd] contribution offer: df() for non-centrality != 0

2006-04-13 Thread Peter Ruckdeschel
Hi Martin, Martin Maechler wrote: > but note that this is clearly too late for 2.3.0 : > If you look at the release schedule at >http://developer.R-project.org/ > you see that April 10 was "Feature Freeze". > Yes, don't worry, I have been aware of this; I did not mean to submit the code

Re: [Rd] contribution offer: df() for non-centrality != 0

2006-04-13 Thread Martin Maechler
Thank you, Peter, but note that this is clearly too late for 2.3.0 : If you look at the release schedule at http://developer.R-project.org/ you see that April 10 was "Feature Freeze". If it looks good -- and it does after a quick glimpse -- it should be possible to be integrated for 2.3.1 th

[Rd] Wishlist: 'quietly' argument for .onAttach() / .First.lib()

2006-04-13 Thread Peter Ruckdeschel
Hi R-devels, in "Writing R extensions" as well as in the help to .onAttach(), you mention that one could use this function to issue a start-up message/banner for the package. My little wish for Easter: a 'quietly'-type argument for .onAttach() / .First.lib() which is passed through by functions

[Rd] contribution offer: df() for non-centrality != 0

2006-04-13 Thread Peter Ruckdeschel
Hi R-devels, I noticed that for the scheduled R 2.3.0, there is still no function df() for non-centrality != 0. Easter is quickly approaching, so as my little gift, I would like to offer you some code to fill this gap: After excluding some "unusual" cases, it amounts to differentiating the corre

Re: [Rd] S4 class slot name 'names' is not allowed (PR#8768)

2006-04-13 Thread slacey
Martin, Thanks! I'll use name for now. Steve -Original Message- From: Martin Maechler [mailto:[EMAIL PROTECTED] Sent: Thursday, April 13, 2006 3:11 AM To: Steven Lacey Cc: [EMAIL PROTECTED]; r-help@stat.math.ethz.ch Subject: S4 class slot name 'names' is not allowed > "SteveL" ==

Re: [Rd] R-latest.tar.gz make error

2006-04-13 Thread [EMAIL PROTECTED]
Hello, 2006/4/13, Robin Hankin <[EMAIL PROTECTED]>: > Hi. > > > (MacOSX 10.4.6) I downloaded R-latest.tar.gz just now from src/base- > prerelease > on CRAN. "make" gave the following error after an apparently successful > ./configure: > > > [snip] > util.c: In function 'Rf_type2char': > util.c:

[Rd] R-latest.tar.gz make error

2006-04-13 Thread Robin Hankin
Hi. (MacOSX 10.4.6) I downloaded R-latest.tar.gz just now from src/base- prerelease on CRAN. "make" gave the following error after an apparently successful ./configure: [snip] util.c: In function 'Rf_type2char': util.c:247: warning: return discards qualifiers from pointer target type gcc -I.

Re: [Rd] bash-like history mechanism and prompt settings

2006-04-13 Thread Liaw, Andy
From: Romain Francois > > Hi, > > I have a couple of questions: > * would it be possible to add more information on the history, for > example the number of the command and a timestamp. With the number of > command, one could do some stuff like in a terminal to recall > a specific > command :

[Rd] bash-like history mechanism and prompt settings

2006-04-13 Thread Romain Francois
Hi, I have a couple of questions: * would it be possible to add more information on the history, for example the number of the command and a timestamp. With the number of command, one could do some stuff like in a terminal to recall a specific command : $ !45 and with the timestamp, one could i

Re: [Rd] yet another problem with S4 dispatch (with setClassUnion)

2006-04-13 Thread Peter Ruckdeschel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear John, sorry for having bothered you with these problems. > As I think Seth told you before, if you want to control the order > of inheritance at the same level, you need to use the intended order > in the contains= argument to setClass. Apolog

[Rd] S4 class slot name 'names' is not allowed (PR#8767)

2006-04-13 Thread maechler
> "SteveL" == Steven Lacey <[EMAIL PROTECTED]> > on Wed, 12 Apr 2006 19:06:52 -0400 writes: SteveL> Hi, Why doesn't this work? setClass("tests", representation(names = "character")) tmp <- new("tests"); [EMAIL PROTECTED] <- "a" SteveL> Error in "slot<-"(object, name