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] 1 NA, used because NA is a level. > is.na(

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 d

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

[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 proces

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] "FLBiol""FLBiols" "FLCatch" "FLFleet" "FLFleets" "FLIndex" [7]

[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 y

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)3473fa

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)3473fa

[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 th

[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 al

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 integrat

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

[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 kn

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 Mur

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]> >>>

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 Ruck

[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)

[Rd] editing pasted text from parameter list through rcompletion crashes R in Windows (PR#9775)

2007-07-03 Thread mwtoews
Full_Name: Michael Toews Version: R 2.5.1 OS: WinXP; SP2 Submission from: (NULL) (142.58.206.114) To reproduce this crash: 1. Start a new R session normally in Windows 2. Type (an example command): "boxplot(" without pressing enter 3. Copy this text: "c(1,2,6,4,7,3)" 4. Bring Rgui.exe back in foc