Re: [Rd] http://cran.r-project.org/contrib/extra/

2006-10-19 Thread Uwe Ligges
Gabor Grothendieck wrote: > I can't seem to find any way to get from the main R page to > >http://cran.r-project.org/contrib/extra/ Everything in there is linked on CRAN -> Software - Other Uwe Ligges > via any series of links. Does such a path exist? Where is it? > > __

Re: [Rd] latin1,utf-8...encoding and data

2006-10-19 Thread Stéphane Dray
Thanks a lot for this clear answer. So there is no way to preserve our french cultural exception (accented characters), if we want to be international... I have thought that the inclusion of a parameter encoding in data function (e.g. data(mydata,encoding="latin1")) like in the function 'file'

[Rd] bug when loading a new version of a function in a given .Rdata file (PR#9306)

2006-10-19 Thread frederic . gosselin
Full_Name: Frédéric Gosselin Version: 2.4.0 OS: windows XP Submission from: (NULL) (195.221.118.82) When I download a new version of a function just by copying it in the active window of Rgui 2.4.0, it crashes. It does not happen when I first edit the function (with fix()) and then copy the funct

[Rd] arraytake for extracting subarrays from multidimensional arrays

2006-10-19 Thread Balaji S. Srinivasan
Hi, I recently encountered a problem with array subsetting and came up with a fix. Given an array of arbitrary dimensions, in which the number of dimensions is only known at runtime, I wanted to extract a subarray. The main issue with doing this is that in order to extract a subarray from an array

Re: [Rd] arraytake for extracting subarrays from multidimensional arrays

2006-10-19 Thread Robin Hankin
Hi Your arraytake() function does indeed do something that can't be done elegantly by apltake(), AFAICS I think that arraytake() would make a splendid addition to the magic package. Would that be acceptable? best wishes rksh [I can't help thinking that a judicious use of do.call() could rep

Re: [Rd] arraytake for extracting subarrays from multidimensional arrays

2006-10-19 Thread Gabor Grothendieck
Note that it can also be done like with do.call: a <- array(1:24, 2:4) L <- list(TRUE, 1:3, c(4, 2)) do.call("[", c(list(a), L)) On 10/19/06, Balaji S. Srinivasan <[EMAIL PROTECTED]> wrote: > Hi, > > I recently encountered a problem with array subsetting and came up with a > fix. Given an array o

Re: [Rd] latin1,utf-8...encoding and data

2006-10-19 Thread Martin Maechler
> "Stéphane" == Stéphane Dray <[EMAIL PROTECTED]> > on Thu, 19 Oct 2006 09:46:49 +0200 writes: Stéphane> Thanks a lot for this clear answer. So there is no way to preserve our Stéphane> french cultural exception (accented characters), I agree that there are many French cult

Re: [Rd] arraytake for extracting subarrays from multidimensional arrays

2006-10-19 Thread Robin Hankin
On 19 Oct 2006, at 14:26, Gabor Grothendieck wrote: > Note that it can also be done like with do.call: > > a <- array(1:24, 2:4) > L <- list(TRUE, 1:3, c(4, 2)) > do.call("[", c(list(a), L)) > aargggh, you beat me to it. I didn't think to pass TRUE to "[" . I'll stick it in the package wit

[Rd] Memory leak

2006-10-19 Thread Brahm, David
This is a followup to the R-help thread, "Error: STRING_ELT() can only be applied to a 'character vector', not a 'builtin'". Thanks to Prof. Brian Ripley for suggesting the use of gctorture and valgrind. I am getting segmentation faults that appear to come from a memory leak. I now have a reprod

[Rd] \link to another package

2006-10-19 Thread Ross Boylan
In the documentation for my package I would like to reference the Rmpi documentation. I started with \link{Rmpi}, which caused R CMD check to complain that it could not resolve the link. Since Rmpi wasn't loaded, this isn't surprising. Ideally the user would see Rmpi, but the link would go to Rm

[Rd] default arguments in generics and methods

2006-10-19 Thread Parlamis Franklin
i believe the following is true but would appreciate confirmation that it is intended behavior and will continue: if a default argument is employed in the definition of a generic function, and the generic is called with the argument in question (call it 'ARG') missing, then the method for si

[Rd] Bug in Acrobat Reader 7 (or R?) with translucent text

2006-10-19 Thread Kevin Wright
My setup: R 2.4.0, Windows 2000, Acrobat Reader 7. When I create a .pdf with translucent colors, the translucency works correctly for points, but not for text. Below is some R code that creates a .pdf with this phenomenon. I was going to report this as a bug in R, but then I tried to view the p

Re: [Rd] Bug in Acrobat Reader 7 (or R?) with translucent text

2006-10-19 Thread Marc Schwartz
On Thu, 2006-10-19 at 15:14 -0500, Kevin Wright wrote: > My setup: R 2.4.0, Windows 2000, Acrobat Reader 7. > > When I create a .pdf with translucent colors, the translucency works > correctly for points, but not for text. Below is some R code that > creates a .pdf with this phenomenon. > > I w

[Rd] bug in rect (PR#9307)

2006-10-19 Thread jgvcqa
Full_Name: Joe Voelkel Version: 2.4.0 OS: Windows XP Submission from: (NULL) (129.21.11.37) Using "border=NA" in the call to rect generates an error. But the help file says border=NA is acceptable. (The problem is that border=NA evaluates to TRUE for "is.logical(border)" inside the function. Us

Re: [Rd] arraytake for extracting subarrays from multidimensional arrays

2006-10-19 Thread Balaji S. Srinivasan
If you can add it to the magic package, that would be great. It seems like the appropriate place for it. It would probably be useful to combine that with the adrop function or apldrop function in order to allow transparent extraction of subarrays. Perhaps the default could be "drop=FALSE" (please!

[Rd] lapack tests fail -- is this something to worry about?

2006-10-19 Thread Armstrong, Whit
I see the comment here about some 64bit combinations failing. Well, my configuration fails. Is this really something to worry about? for R-patched: fi1->cat SVN-REVISION Revision: 39576 Last Changed Date: 2006-10-03 fi1-> > ## failed for some 64bit-Lapack-gcc combinations: > sm <- cbind(1, 3:

Re: [Rd] Bug in Acrobat Reader 7 (or R?) with translucent text

2006-10-19 Thread Steven McKinney
Hi Kevin, On my Mac, (PowerPC OS X 10.4.8) I see the same plot in Adobe reader and in the Mac preview app. Text is transluscent when overlaid by a plot icon. Text is not transluscent when overlaid by other text. (Is this expected?) Plot icons are transluscent when overlaid by other plot i

Re: [Rd] bug in rect (PR#9307)

2006-10-19 Thread Duncan Murdoch
On 10/19/2006 5:34 PM, [EMAIL PROTECTED] wrote: > Full_Name: Joe Voelkel > Version: 2.4.0 > OS: Windows XP > Submission from: (NULL) (129.21.11.37) > > > Using "border=NA" in the call to rect generates an error. But the help file > says > border=NA is acceptable. > > (The problem is that borde

Re: [Rd] bug in rect (PR#9307)

2006-10-19 Thread Peter Dalgaard
Duncan Murdoch <[EMAIL PROTECTED]> writes: > On 10/19/2006 5:34 PM, [EMAIL PROTECTED] wrote: > > Full_Name: Joe Voelkel > > Version: 2.4.0 > > OS: Windows XP > > Submission from: (NULL) (129.21.11.37) > > > > > > Using "border=NA" in the call to rect generates an error. But the help file > > sa

Re: [Rd] bug in rect (PR#9307)

2006-10-19 Thread Duncan Murdoch
On 10/19/2006 7:22 PM, Peter Dalgaard wrote: > Duncan Murdoch <[EMAIL PROTECTED]> writes: > >> On 10/19/2006 5:34 PM, [EMAIL PROTECTED] wrote: >>> Full_Name: Joe Voelkel >>> Version: 2.4.0 >>> OS: Windows XP >>> Submission from: (NULL) (129.21.11.37) >>> >>> >>> Using "border=NA" in the call to re

Re: [Rd] bug in rect (PR#9307)

2006-10-19 Thread Joseph Voelkel
Thanks. I'll just get out of your way at this point. Joe -Original Message- From: Duncan Murdoch [mailto:[EMAIL PROTECTED] Sent: Thursday, October 19, 2006 7:42 PM To: Peter Dalgaard Cc: [EMAIL PROTECTED]; r-devel@stat.math.ethz.ch; Joseph Voelkel; Deepayan Sarkar Subject: Re: [Rd] bu