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

2010-07-05 Thread Prof Brian Ripley
On Sun, 4 Jul 2010, Marc Schwartz wrote: 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

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

2010-07-05 Thread Peter Dalgaard
Prof Brian Ripley wrote: So there was perhaps an oversight of sorts for 2.11.x in handling these two JSS related files. That's a different hand. I don't know if the files were intended to be installed in 2.11.x: they are in R-devel so eventually packages depending on R = 2.12.0

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

2010-07-05 Thread Marc Schwartz
On Jul 5, 2010, at 1:50 AM, Prof Brian Ripley wrote: On Sun, 4 Jul 2010, Marc Schwartz wrote: 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

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

2010-07-05 Thread Marc Schwartz
On Jul 5, 2010, at 2:52 AM, Peter Dalgaard wrote: Prof Brian Ripley wrote: So there was perhaps an oversight of sorts for 2.11.x in handling these two JSS related files. That's a different hand. I don't know if the files were intended to be installed in 2.11.x: they are in R-devel

Re: [Rd] kmeans

2010-07-05 Thread Martin Maechler
Gabor Grothendieck ggrothendi...@gmail.com on Fri, 2 Jul 2010 18:50:28 -0400 writes: In kmeans() in stats one gets an error message with the default clustering algorithm if centers = 1. Its often useful to calculate the sum of squares for 1 cluster, 2 clusters, etc. and this

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

2010-07-05 Thread Patrick Burns
On 05/07/2010 10:56, Martin Maechler wrote: PatB == Patrick Burnspbu...@pburns.seanet.com on Sun, 04 Jul 2010 09:43:44 +0100 writes: PatB Is there a reason that 'which.min' and PatB 'which.max' don't have an 'arr.ind' PatB argument? well, help(which.min) tells you

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

2010-07-05 Thread Henrik Bengtsson
For what it's worth, see arrayIndex() in R.utils, e.g. # Single index print(arrayIndex(21, dim=c(4,3,3))) # Multiple indices print(arrayIndex(20:23, dim=c(4,3,3))) # Whole array x - array(1:30, dim=c(5,6)) print(arrayIndex(1:length(x), dim=dim(x))) # Find (row,column) of maximum value m -

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

2010-07-05 Thread Henrik Bengtsson
...and, of course, just after sending it off I found out that from R v2.11.0 there is now an arrayInd() in the 'base' package doing exactly the same thing. See help(arrayInd). /Henrik On Mon, Jul 5, 2010 at 10:49 PM, hb h...@stat.berkeley.edu wrote: For what it's worth, see arrayIndex() in

[Rd] Windows 64bit package build requires underscore hack?

2010-07-05 Thread Dominick Samperi
Hello, After much tinkering I managed to build packages using the 64bit version of R with the help of hints from http://www.murdoch-sutherland.com/Rtools/ and http://www.stats.ox.ac.uk/~ripley/Win64/W64porting.html and R-admin Manual. But a hack was required, and this seems to be related to a

Re: [Rd] Windows 64bit package build requires underscore hack?

2010-07-05 Thread Dominick Samperi
To be more precise, while the build process worked, the check did not. When it got to the point * checking for portable compilation flags in Makevars ... a number of shells popped up (to run c:\Rtools\sh.exe) and the process died. This happens with Rcpp and cxxPack on an AMD machine running