Re: [Rd] pf hangs with infinite arguments (PR#8110)

2005-08-31 Thread Prof Brian Ripley
Which x? Not for 1, 10, Inf for example. I did manage to make pf(Inf, 5, Inf) hang, but not under R-patched or R-devel. It seems this is already fixed (please see the reporting conditions in the FAQ or in the posting guide). pf(Inf, n1, Inf) is the same code as pchisq(Inf, n1) and

[Rd] generic function argument list problem

2005-08-31 Thread Robin Hankin
Hi it says in R-exts that A method must have all the arguments of the generic, including ... if the generic does. A method must have arguments in exactly the same order as the generic. A method should use the same defaults as the generic. So, how come the arguments for

[Rd] pos option to function 'library'

2005-08-31 Thread Mark.Bravington
At the moment, the 'pos' argument to 'library' defaults to 2. Would it be possible to change this default to something functionally like the following? pos= if( is.null( pos.expr - getOption( 'library.pos.default.expr'))) 2 else eval( pos.expr) The proposal is fully back-compatible in that 'pos'

Re: [Rd] generic function argument list problem

2005-08-31 Thread Martin Maechler
Robin == Robin Hankin [EMAIL PROTECTED] on Wed, 31 Aug 2005 08:09:15 +0100 writes: Robin I am writing a rep() method for objects with class octonion, and Robin my function rep.octonion() has argument list (x, times, length.out, Robin each, ...)

Re: [Rd] generic function argument list problem

2005-08-31 Thread Jari Oksanen
On Wed, 2005-08-31 at 08:09 +0100, Robin Hankin wrote: Hi it says in R-exts that A method must have all the arguments of the generic, including ... if the generic does. A method must have arguments in exactly the same order as the generic. A method should use the

Re: [Rd] Fwd: segfault

2005-08-31 Thread Byron Ellis
There's definitely something a bit strange going on. The arguments as passed to wireframePanelCalculations from the code snippet show only 6060 elements for the z vector (51,101,16 respectively for x,y,rot) while the function routinely tries to access at positions in the z vector 20,000...

[Rd] Why should package.skeleton() fail R CMD check?

2005-08-31 Thread Jari Oksanen
I find it a bit peculiar that a package skeleton created with a utils function package.skeleton() fails subsequent R CMD check. I do understand that the function is intended to produce only a skeleton that should be edited by the package author. I think that it would be justified to say that the

Re: [Rd] Why should package.skeleton() fail R CMD check?

2005-08-31 Thread Martin Maechler
Jari == Jari Oksanen [EMAIL PROTECTED] on Wed, 31 Aug 2005 11:58:10 +0300 writes: Jari I find it a bit peculiar that a package skeleton created with a utils Jari function package.skeleton() fails subsequent R CMD check. I do Jari understand that the function is intended to

Re: [Rd] Why should package.skeleton() fail R CMD check?

2005-08-31 Thread Martin Maechler
One thing I forgot to add: Did you try to include - data frames - other data - S3 generics and methods - S4 generics and methods in the objects you gave to package.skeleton() ? If we want to change the prompt*() functions such that package.skeleton() produces a package that

Re: [Rd] robustness of install.packages/update.packages

2005-08-31 Thread Prof Brian Ripley
On Mon, 29 Aug 2005, Prof Brian Ripley wrote: On Sun, 28 Aug 2005, Prof Brian Ripley wrote: After redirecting R 2.1.1 on my laptop to use http://cran.au.r-project.org/ for the CRAN repository, the install.packages() command ran without problems. I issued the command `library(MASS)'

Re: [Rd] Why should package.skeleton() fail R CMD check?

2005-08-31 Thread Jari Oksanen
On Wed, 2005-08-31 at 11:23 +0200, Martin Maechler wrote: Since you didn't use text/plain as content type, your attachment didn't make it to the list anyway, Yeah, I noticed. and you have a second chance: Please use a diff -u against

Re: [Rd] So-called 'bug' reports PR#8102 and PR#8103

2005-08-31 Thread Prof Brian Ripley
Windows XP, R-devel (2005-08-31 r35465) tm - ISOdate(2005, 08, 29, hour = 12, tz = EST5EDT) tm [1] 2005-08-29 12:00:00 EDT tm + 0 [1] 2005-08-29 12:00:00 EDT tm + 3600 [1] 2005-08-29 13:00:00 EDT tm + c(0,1) * 3600 [1] 2005-08-29 12:00:00 EDT 2005-08-29 13:00:00 EDT (R 2.1.1 gives on my

Re: [Rd] .Call and Segmentation Fault

2005-08-31 Thread Huntsinger, Reid
I suggest you look at the code for .Call() in dotcode.c. I suspect the problem is in dealing with R objects, however. You don't show how you get from SEXPs to pointers to pass to Fortran, or what the Fortran routine requires. I don't understand how you can call the same function from C. How do

[Rd] Bug in copying of S4 objects (PR#8112)

2005-08-31 Thread murdoch
If I have an S4 object, and I make a copy, changes to the original aren't reflected in the copy: setClass(foo, representation(slot=numeric)) x - new(foo, slot=1) y - x [EMAIL PROTECTED] - 2 y An object of class foo Slot slot: [1] 1 This is as it should be. However, if I call the slot

[Rd] Email failure for forwards from [EMAIL PROTECTED] to r-de vel

2005-08-31 Thread Warnes, Gregory R
I just sent a bug report to [EMAIL PROTECTED] Unfortunately, the message forwarding to r-devel failed. It appears that this occurred due an interaction between the forwarding setup and SPF: 1) The forwarded message had From as [EMAIL PROTECTED], 2) Pfizer has SPF records

[Rd] R CMD check example problem (PR#8113)

2005-08-31 Thread Warnes, Gregory R
[Automatic forwarding from R-bugs failed. This message has been manually forwarded.] Hi all! I'm trying to add Thomas Lumley's defmacro() function Lumley T. Programmer's Niche: Macros in {R}, R News, 2001, Vol 1, No. 3, pp 11--13, \url{http://CRAN.R-project.org/doc/Rnews/} to the gtools

[Rd] R --gui doesn't work, but R --help says it does

2005-08-31 Thread Robert King
This was reported on r-devel in April for 2.1.0, but isn't fixed in 2.1.1 see http://tolstoy.newcastle.edu.au/~rking/R/devel/05/04/0586.html # R --help [ output omitted, until] -g, --gui=TYPEUse TYPE as GUI; possible values are 'X11' (default), 'none', 'Tk' and

[Rd] update.packages forces Tcl/Tk interface despite ask=TRUE if the DISPLAY environment variable is set (PR#8115)

2005-08-31 Thread robert . king
Full_Name: Robert King Version: 2.1.1 OS: Linux (debian stable, with backport R) Submission from: (NULL) (142.58.147.28) update.packages documentation (and code, from what I can make out) says: ask: logical indicating whether to ask user before packages are actually downloaded

Re: [Rd] update.packages forces Tcl/Tk interface despite ask=TRUE if the DISPLAY environment variable is set (PR#8115)

2005-08-31 Thread Peter Dalgaard
[EMAIL PROTECTED] writes: Full_Name: Robert King Version: 2.1.1 OS: Linux (debian stable, with backport R) Submission from: (NULL) (142.58.147.28) update.packages documentation (and code, from what I can make out) says: ask: logical indicating whether to ask user before packages

[Rd] Build Portland Group Compiler

2005-08-31 Thread Jennifer Lai
Hi, I built R with Portland Group compiler, but I noticed one thing that when I ran configure for the first time on AMD machine, I got the following error: checking whether the C compiler works... configure: error: cannot run C compiled programs. If you meant to cross compile, use

Re: [Rd] Build Portland Group Compiler

2005-08-31 Thread Peter Dalgaard
Jennifer Lai [EMAIL PROTECTED] writes: Hi, I built R with Portland Group compiler, but I noticed one thing that when I ran configure for the first time on AMD machine, I got the following error: checking whether the C compiler works... configure: error: cannot run C compiled

Re: [Rd] 64 bit R for Windows

2005-08-31 Thread Duncan Murdoch
Milton Lopez wrote: Duncan: Thanks for your reply. Not being a part of the R world and having to assist with these purchases, I have to ask what not yet means. I realize that this is a difficult question to answer even for commercial software, but I am hoping you or someone else on the

Re: [Rd] RFC: rawConnection (was loop connections)

2005-08-31 Thread dhinds
Duncan Murdoch [EMAIL PROTECTED] wrote: I would implement it differently from the way you did. I'd call it a rawConnection, taking a raw variable (or converting something else using as.raw) as the input, and providing both text and binary read/write modes (using the same conventions for text