[Rd] arr.ind argument to which.min and which.max

2010-07-04 Thread Patrick Burns
Is there a reason that 'which.min' and 'which.max' don't have an 'arr.ind' argument? The context in which I wanted that was a grid search optimization, which seems like it would be reasonably common to me. -- Patrick Burns pbu...@pburns.seanet.com http://www.burns-stat.com (home of 'Some hints

Re: [Rd] Attributes of 1st argument in ...

2010-07-04 Thread Prof Brian Ripley
I think you have missed the use of ..1 etc: see e.g. cBind() in package Matrix. So x - attr(list(...)[[1L]], foo) can be x - attr(..1, foo) As for 'extra copying', it all depends on exactly what you are doing, but compare foo1 - function(...) length(..1) foo2 - function(...)

Re: [Rd] Attributes of 1st argument in ...

2010-07-04 Thread Daniel Murphy
Thank you, Professor, for drawing my attention to the nifty tracemem function. I'm using the ..1 syntax to check the properties of the S4 class at function call. The Description at ?cBind tells me that I'm not alone in this predicament. Just as Matrix needs its own cBind function, my package will

[Rd] Call for suggestions

2010-07-04 Thread michael meyer
Greetings, If this is not the appropriate place to post this question please let me know where to post it. I have a package under development which fits models of the form $$ f(t)=\sum_i B_iG_i(t,\omega) $$ depending on a parameter vector $\omega$ of arbitrary dimension to data (one dimensional

[Rd] Possible bug in 2.11.x texmf makefile.in and some related things...

2010-07-04 Thread Marc Schwartz
Hi all, A list of some possible issues: 1. In R 2.11.x, in: http://svn.r-project.org/R/branches/R-2-11-branch/share/texmf/ there are two files, jss.cls and jss.bst (for JSS), which appear to be new since 2.10.x. These files are not installed when building/installing R. It would appear that