Re: [Rd] R 2.5.1 - ?factor examples, details

2007-07-03 Thread Peter Dalgaard
François Pinard wrote: Hi, R people. In ?factor, in the Examples: section, we see: ## suppose you want NA as a level, and to allowing missing values. (x - factor(c(1, 2, NA), exclude = )) is.na(x)[2] - TRUE x # [1] 1NA NA, NA used because NA is a level. is.na(x) # [1]

Re: [Rd] File lock mechanisms in R

2007-07-03 Thread Prof Brian Ripley
On Mon, 2 Jul 2007, Henrik Bengtsson wrote: Hi, is there a (cross-platform) file-locking mechanism available in R (or via some package)? I don't believe there really is a cross-platform file-locking mechanism available to any language. File-locking is an OS feature, and the semantics

Re: [Rd] minor flaw in integrate()

2007-07-03 Thread Martin Maechler
DM == Duncan Murdoch [EMAIL PROTECTED] on Mon, 02 Jul 2007 21:56:23 -0400 writes: DM On 28/06/2007 5:05 PM, Peter Ruckdeschel wrote: Hi, I noticed a minor flaw in integrate() from package stats: Taking up arguments lower and upper from integrate(),

[Rd] How to get the names of the classes exported by a specific package.

2007-07-03 Thread ernesto
Hi, I'm writing some functions to generate Rd files for a S4 package. I want to have 2 character vectors with the names of the S4 classes and the methods exported by a package. To get the info about methods I'm using getGenerics(where=package:FLCore) however I can not find a similar process

Re: [Rd] How to get the names of the classes exported by a specific package.

2007-07-03 Thread Martin Morgan
Hi Ernesto, As a hack, library(FLCore) Loading required package: lattice FLCore 1.4-4 - Golden Jackal these - ls(package:FLCore, all.names=TRUE) res - metaNameUndo(these, prefix=C) as.character(res) [1] FLBiolFLBiols FLCatch FLFleet FLFleets FLIndex [7] FLIndices FLQuant

[Rd] Forthcoming change in the API of the Matrix package

2007-07-03 Thread Douglas Bates
Martin and I will soon release a new version of the Matrix package with a modified API. This will affect the authors of any packages that use calls to the C function R_GetCCallable to directly access C functions in the DLL or shared object object in the libs directory of the Matrix package. (If

Re: [Rd] termplot - changes in defaults

2007-07-03 Thread John Maindonald
While termplot is under discussion, here's another proposal. I'd like to change the default for partial.resid to TRUE, and for smooth to panel.smooth. I'd be surprised if those changes were to break existing code. John Maindonald email: [EMAIL PROTECTED] phone : +61 2 (6125)3473

Re: [Rd] termplot - changes in defaults

2007-07-03 Thread John Maindonald
While termplot is under discussion, here's another proposal. I'd like to change the default for partial.resid to TRUE, and for smooth to panel.smooth. I'd be surprised if those changes were to break existing code. John Maindonald email: [EMAIL PROTECTED] phone : +61 2 (6125)3473

[Rd] [OT] help in setting up a doxygen configuration file

2007-07-03 Thread Douglas Bates
I would appreciate some pointers on how to set up a doxygen configuration file for C source code. In particular I would like to be able to generate a call graph. I tend to write a lot of short utility functions and, by the time the final design reveals itself, it is quite possible that some of

[Rd] 'inline' package update

2007-07-03 Thread Oleg Sklyar
Dear all, the 'inline' package was updated to version 0.2.2 with the following changes: - functions declared using 'cfunction' can now be saved, the code is recompiled when the object is loaded (not yet implemented for setCMethod) - full path to the R binary is used for compilation

Re: [Rd] minor flaw in integrate()

2007-07-03 Thread Peter Ruckdeschel
Thanks Martin and Duncan for your comments, Martin Maechler wrote: DM == Duncan Murdoch [EMAIL PROTECTED] on Mon, 02 Jul 2007 21:56:23 -0400 writes: DM On 28/06/2007 5:05 PM, Peter Ruckdeschel wrote: Hi, I noticed a minor flaw in integrate() from package stats:

Re: [Rd] minor flaw in integrate()

2007-07-03 Thread Martin Maechler
PetRd == Peter Ruckdeschel [EMAIL PROTECTED] on Tue, 03 Jul 2007 17:26:43 +0200 writes: PetRd Thanks Martin and Duncan for your PetRd comments, PetRd Martin Maechler wrote: DM == Duncan Murdoch [EMAIL PROTECTED] on Mon, 02 Jul 2007 21:56:23 -0400 writes: DM

[Rd] update() problem (was: saving objects with embedded environments)

2007-07-03 Thread Duncan Murdoch
I don't want this thread to be lost, so I've changed the subject heading. I think there's a problem here, but the problem is that update() is failing, not that the environment is being unnecessarily saved. The problem here is that update() has no method specific to lm objects, so it doesn't

Re: [Rd] minor flaw in integrate()

2007-07-03 Thread Duncan Murdoch
On 7/3/2007 11:55 AM, Martin Maechler wrote: PetRd == Peter Ruckdeschel [EMAIL PROTECTED] on Tue, 03 Jul 2007 17:26:43 +0200 writes: PetRd Thanks Martin and Duncan for your PetRd comments, PetRd Martin Maechler wrote: DM == Duncan Murdoch [EMAIL PROTECTED] on

Re: [Rd] minor flaw in integrate()

2007-07-03 Thread Prof Brian Ripley
I think throwing an error is a better solution: this is rather unlikely to be deliberate and returning NaN might postpone the detection too long. On Tue, 3 Jul 2007, Duncan Murdoch wrote: On 7/3/2007 11:55 AM, Martin Maechler wrote: PetRd == Peter Ruckdeschel [EMAIL PROTECTED] on Tue,

Re: [Rd] minor flaw in integrate()

2007-07-03 Thread Gabor Grothendieck
If integrate is changed it would be nice at the same time to make it into an S3 generic. deriv already is an S3 generic but strangely integrate is not. Ryacas provides a deriv method but for integrate Ryacas inconsistently provides Integrate since integrate is not generic. On 6/28/07, Peter

[Rd] reinforce library to re-load

2007-07-03 Thread Weiwei Shi
Hi, I am wondering if there is a parameter in library() so that it can reinforce package to be reloaded. It helps when you test your modified package by yourself. Otherwise, my way is to re-start Rgui. (by reading ?library, I understand this option is not implemented) ...Both functions check and

Re: [Rd] reinforce library to re-load

2007-07-03 Thread Prof Brian Ripley
Please don't post to multiple lists: I am replying only to R-devel. You should detach your package, and if it has a namespace unload it, before attempting to reload it. Something like detach(package:foo) library(foo) or unloadNamespace(foo) # this also detaches the package library(foo) If