Re: [Rd] residual '*tmp*' variable after "[<-" error

2006-09-21 Thread Prof Brian Ripley
On Wed, 20 Sep 2006, Prof Brian Ripley wrote: > On Wed, 20 Sep 2006, Parlamis Franklin wrote: > >> self-sanity check prior to filing a bug report: >> >> attempted replacement that generates an error leaves a '*tmp*' >> variable in the global environment. >> >> test <- 1:10 >> test[2:4] <- expres

[Rd] Possible bug in base::namespaceImportFrom?

2006-09-21 Thread Seth Falcon
Hi, namespaceImportFrom in base/R/namespace.R has the following: fdef <- methods:::getGeneric(genName, impenv) The definition of getGeneric is in methods/R/RMethodUtils.R starts with: getGeneric <- ## return the definition of the function named f as a generic. ## ##

Re: [Rd] validity testing as part of '@<-'

2006-09-21 Thread Byron Ellis
It also wouldn't cover objects constructed by external functions (a lot of my code produces these creatures). On 9/21/06, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 9/21/2006 5:29 PM, Parlamis Franklin wrote: > > 'methods' package feature request / discussion starter: > > > > perhaps a call t

Re: [Rd] validity testing as part of '@<-'

2006-09-21 Thread Duncan Murdoch
On 9/21/2006 5:29 PM, Parlamis Franklin wrote: > 'methods' package feature request / discussion starter: > > perhaps a call to 'validObject' should occur at part of any slot > replacement operation (and the operation not be carried out if it > would invalidate the object)? this may prevent th

[Rd] validity testing as part of '@<-'

2006-09-21 Thread Parlamis Franklin
'methods' package feature request / discussion starter: perhaps a call to 'validObject' should occur at part of any slot replacement operation (and the operation not be carried out if it would invalidate the object)? this may prevent the need for prophylactic 'validObject' calls in other us

Re: [Rd] Package dependencies and imports

2006-09-21 Thread Prof Brian Ripley
On Thu, 21 Sep 2006, Martin Maechler wrote: >> "JohnF" == John Fox <[EMAIL PROTECTED]> >> on Thu, 21 Sep 2006 11:22:17 -0400 writes: > >JohnF> Dear list members, > >JohnF> I'm encountering the following problem with package dependencies and >JohnF> imports: > >JohnF> Th

Re: [Rd] Package dependencies and imports

2006-09-21 Thread John Fox
Dear Martin and Kurt, Adding "Enhances: rgl" to the description file did the trick! Thank you, John John Fox Department of Sociology McMaster University Hamilton, Ontario Canada L8S 4M4 905-525-9140x23604 http://socserv.mcmaster.ca/jfox

Re: [Rd] Package dependencies and imports

2006-09-21 Thread Seth Falcon
Martin Maechler <[EMAIL PROTECTED]> writes: > > I think you should use the new DESCRIPTION field and say > 'Enhances: rgl' > > but I haven't checked if this prevents the warning, though I > think it should.. But is Rcmdr enhancing rgl or being enhanced by rgl? :-( :-( __

[Rd] Help understanding how nls parses the formula argument to estimate the model

2006-09-21 Thread Joe Byers
I could use some help understanding how nls parses the formula argument to a model.frame and estimates the model. I am trying to utilize the functionality of the nls formula argument to modify garchFit() to handle other variables in the mean equation besides just an arma(u,v) specification. My no

Re: [Rd] Sweave processes \Sexpr in commented LaTeX source

2006-09-21 Thread Marc Schwartz (via MN)
On Thu, 2006-09-21 at 16:08 +0200, Jean lobry wrote: > Marc, > > >I have a large .Rnw file and was in the process of doing some debugging. > >I had set some R chunks to 'eval=false' in the process. This resulted in > >some R objects not being created that were in turn used in the > >subsequent \Se

Re: [Rd] Sweave processes \Sexpr in commented LaTeX source (2.3.1patched and 2.4.0)

2006-09-21 Thread Marc Schwartz (via MN)
On Thu, 2006-09-21 at 16:40 +0200, Friedrich Leisch wrote: > > On Wed, 20 Sep 2006 10:07:26 -0700, > > Seth Falcon (SF) wrote: > > > "Antonio, Fabio Di Narzo" <[EMAIL PROTECTED]> writes: > >> 2006/9/20, Seth Falcon <[EMAIL PROTECTED]>: > >>> Peter Dalgaard <[EMAIL PROTECTED]> writes:

Re: [Rd] Package dependencies and imports

2006-09-21 Thread Martin Maechler
> "JohnF" == John Fox <[EMAIL PROTECTED]> > on Thu, 21 Sep 2006 11:22:17 -0400 writes: JohnF> Dear list members, JohnF> I'm encountering the following problem with package dependencies and JohnF> imports: JohnF> The Rcmdr package doesn't declare a formal dependency

[Rd] Package dependencies and imports

2006-09-21 Thread John Fox
Dear list members, I'm encountering the following problem with package dependencies and imports: The Rcmdr package doesn't declare a formal dependency (via depends or suggests in the package DESCRIPTION) on the rgl package because the latter apparently causes problems on some systems. This allow

Re: [Rd] Sweave processes \Sexpr in commented LaTeX source

2006-09-21 Thread Seth Falcon
[shameless plug] Jean lobry <[EMAIL PROTECTED]> writes: > <>= > x <- rnorm(100) > ... > @ > > I have \Sexpr{ifelse(exists("x"), length(x), "Ooops, I forgot > to evaluate TimeConsumingCodeChunk1")} elements in vector x. For the case of TimeConsumingCodeChunks, another solution is the weaver packag

Re: [Rd] Sweave processes \Sexpr in commented LaTeX source (2.3.1patched and 2.4.0)

2006-09-21 Thread Friedrich Leisch
> On Wed, 20 Sep 2006 10:07:26 -0700, > Seth Falcon (SF) wrote: > "Antonio, Fabio Di Narzo" <[EMAIL PROTECTED]> writes: >> 2006/9/20, Seth Falcon <[EMAIL PROTECTED]>: >>> Peter Dalgaard <[EMAIL PROTECTED]> writes: >>> > ..not to mention TeX comments inside Sexpr (e.g. %*%...). Skip

Re: [Rd] Sweave processes \Sexpr in commented LaTeX source

2006-09-21 Thread Jean lobry
Marc, >I have a large .Rnw file and was in the process of doing some debugging. >I had set some R chunks to 'eval=false' in the process. This resulted in >some R objects not being created that were in turn used in the >subsequent \Sexpr's. I have often the same problem, I'm using a construct like

[Rd] Not all functions work in RSPerl package? (PR#9242)

2006-09-21 Thread xianjun . dong
Hi, It looks that not all function in R could be implemented by RSPerl. For example, when I call &R::callWithNames("boxplot", {'',@y1}); or R::barplot([EMAIL PROTECTED]); There would be error: Error in -0.01 * height : non-numeric argument to binary operator Caught error in R::call() The sam

Re: [Rd] S4 generics, modify() generic and modifyList() ...

2006-09-21 Thread John Chambers
If a lean-and-mean version is needed for specialized use, there should be indeed a mechanism to run without whatever pieces are supposed to be inefficient. However, the current treatment of S3 methods as internal and S4 methods as external perpetuates an inferior programming mechanism as the a

Re: [Rd] printing of complex numbers in R-alpha

2006-09-21 Thread Robin Hankin
Hello got it: o The printing of complex numbers has changed, handling numbers as a whole rather than in two parts. So both real and imaginary parts are shown to the same accuracy, with the 'digits' parameter referring to the accuracy of the larger component,

Re: [Rd] printing of complex numbers in R-alpha

2006-09-21 Thread Prof Brian Ripley
On Thu, 21 Sep 2006, Martin Maechler wrote: >> "Robin" == Robin Hankin <[EMAIL PROTECTED]> >> on Thu, 21 Sep 2006 08:05:24 +0100 writes: > >Robin> Hello everyone >Robin> I am finding complex numbers to be printed oddly in R-alpha. > > >>> 1e100+1e100i >Robin> [1] 1e+100

Re: [Rd] printing of complex numbers in R-alpha

2006-09-21 Thread Martin Maechler
> "Robin" == Robin Hankin <[EMAIL PROTECTED]> > on Thu, 21 Sep 2006 08:05:24 +0100 writes: Robin> Hello everyone Robin> I am finding complex numbers to be printed oddly in R-alpha. >> 1e100+1e100i Robin> [1] 1e+100+1e+100i >> 1e100 + 1e44i Robin> [1] 1e+100+10

[Rd] typesetting a matrix in an Rd file

2006-09-21 Thread Robin Hankin
Hello everybody I'm trying to write an Rd file so that the resulting LaTeX-ed document includes a matrix. Here is the line in question: \deqn{ E_\theta\left( \begin{array}{cc} 1 & x\theta\\ x\theta & x^2\theta^2 \end{array}\right) }{ommitted: see dvi} which loo

Re: [Rd] S4 generics, modify() generic and modifyList() ...

2006-09-21 Thread Prof Brian Ripley
On Thu, 21 Sep 2006, Martin Maechler wrote: [...] > For the mid to longer term I agree a modify() generic might be > nicer, and the method for "function" may even be more useful > than the one for list [[and modifyList() would eventually be deprecated]]. > > OTOH, for new generics, I'd tend to a

[Rd] S4 generics, modify() generic and modifyList() ...

2006-09-21 Thread Martin Maechler
> "DeepS" == Deepayan Sarkar <[EMAIL PROTECTED]> > on Tue, 19 Sep 2006 13:48:52 -0700 writes: DeepS> On 9/19/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: >> Perhaps it should have another name, be made generic and extended >> to functions in which case it would work on

[Rd] printing of complex numbers in R-alpha

2006-09-21 Thread Robin Hankin
Hello everyone I am finding complex numbers to be printed oddly in R-alpha. > 1e100+1e100i [1] 1e+100+1e+100i > 1e100 + 1e44i [1] 1e+100+18821361405306422640701865984i > dput(1e100+1e44i) 1e+100+18821361405306422640701865984i > [same thing at home on a linux