Re: [Rd] proposed changes to RSiteSearch

2009-06-03 Thread Duncan Murdoch
spencerg wrote: Hello All: What do you think of adding a function "RSiteSeach" to the package of that name, masking the "RSiteSearch" function in "utils", trapping any call RSiteSearch('searchstring', 'function') to the current RSiteSearch.function and passing all others to "utils:::R

Re: [Rd] proposed changes to RSiteSearch

2009-06-03 Thread Gabor Grothendieck
If it were an entry on the Rgui menu on Windows then at least Windows users could get to it quickly regardless of the name. 2009/6/4 Romain François : > One other comment was that the function name is a pain to type, which I > believe is also true for "RSiteSearch". Considering we (I) might add ot

Re: [Rd] function(x, dim=dim(x)) { str(dim) } => recursive default argument reference

2009-06-03 Thread Henrik Bengtsson
My bad: http://tolstoy.newcastle.edu.au/R/e2/help/07/09/25387.html /Henrik On Wed, Jun 3, 2009 at 5:07 PM, Henrik Bengtsson wrote: > Is the following a bug? > > Rterm -vanilla > >> foo <- function(x, dim=dim(x)) { str(dim) } >> foo(1:2) > Error in str(dim) : >  promise already under evaluation:

[Rd] function(x, dim=dim(x)) { str(dim) } => recursive default argument reference

2009-06-03 Thread Henrik Bengtsson
Is the following a bug? Rterm -vanilla > foo <- function(x, dim=dim(x)) { str(dim) } > foo(1:2) Error in str(dim) : promise already under evaluation: recursive default argument reference or earlier problems? > foo(x=1:2) Error in str(dim) : promise already under evaluation: recursive default

Re: [Rd] reference counting bug related to break and next in loops

2009-06-03 Thread Wacek Kusnierczyk
William Dunlap wrote: > help('while') says: > Usage: > for(var in seq) expr > while(cond) expr > repeat expr > break > next > Value: > 'for', 'while' and 'repeat' return the value of the last > expression evaluated (or 'NULL' if none was), invisibly. 'for' >

Re: [Rd] Would like to add this to example for plotmath. Can you help?

2009-06-03 Thread Paul Johnson
2009/6/3 Romain François : > Hi, > > Would you like this to go to the graph gallery ? > http://addictedtor.free.fr/graphiques/ > I would be honored to have a graph in your fine display. Do you want me to submit it formally by emailing you as described here: http://wiki.r-project.org/rwiki/doku.ph

Re: [Rd] proposed changes to RSiteSearch

2009-06-03 Thread Gabor Grothendieck
Having RSiteSearch.function be a strict superset of RSiteSearch might make sense but giving them the same name seems too heavy handed unless done via OO which seems not applicable here since R's version is not generic and the two use the same class, "character", anyways. On Wed, Jun 3, 2009 at 5:3

Re: [Rd] proposed changes to RSiteSearch

2009-06-03 Thread spencerg
Hello All: What do you think of adding a function "RSiteSeach" to the package of that name, masking the "RSiteSearch" function in "utils", trapping any call RSiteSearch('searchstring', 'function') to the current RSiteSearch.function and passing all others to "utils:::RSiteSearch"? Thi

Re: [Rd] Print bug for matrix(list(NA_complex_, ...))

2009-06-03 Thread Martin Maechler
> William Dunlap > on Wed, 3 Jun 2009 11:49:00 -0700 writes: > Changing the uninitialized 'w' to 'R_print.na_width' for > the complex NA code fixes up the valgrind complaints on > Linux and the bad behavior on Windows: [.] Thanks a lot, Bill, both for the diagnos

Re: [Rd] reference counting bug related to break and next in loops

2009-06-03 Thread William Dunlap
help('while') says: Usage: for(var in seq) expr while(cond) expr repeat expr break next Value: 'for', 'while' and 'repeat' return the value of the last expression evaluated (or 'NULL' if none was), invisibly. 'for' sets 'var' to the last used element of '

Re: [Rd] Problems with plot and Quartz device (PR#13744)

2009-06-03 Thread Simon Urbanek
Thanks, Thomas. It is indeed a very interesting phenomenon. Apparently the discrete structure in the data interacts with the way the data are plotted on a very small scale. I have committed a work-around - it forces rectangles to retain at least their original width/height when snapping t

Re: [Rd] Problems with plot and Quartz device / What is alpha?

2009-06-03 Thread Thomas Richardson
PS Please forgive my ignorance, but when you say: BTW: you may want to use something like pch=19, cex=0.1 (and maybe add some alpha to get a quick density estimation). I don't know what alpha refers to here. Thanks again. Best wishes, Thomas Cheers, S So I guess it might be related t

Re: [Rd] Problems with plot and Quartz device (PR#13744)

2009-06-03 Thread Thomas Richardson
Dear Simon, Thank you very much for the very rapid response! rna is not defined in R, can you, please, supply a reproducible example? Apologies for including code that could not be run directly. (I had assumed simulating "similar" data would give the same behaviour, but having done more expe

Re: [Rd] Problems with plot and Quartz device / What is alpha?

2009-06-03 Thread Simon Urbanek
On Jun 3, 2009, at 15:00 , Thomas Richardson wrote: PS Please forgive my ignorance, but when you say: BTW: you may want to use something like pch=19, cex=0.1 (and maybe add some alpha to get a quick density estimation). I don't know what alpha refers to here. alpha = alpha component of

Re: [Rd] Print bug for matrix(list(NA_complex_, ...))

2009-06-03 Thread Stavros Macrakis
Quick action, thanks! Does this also fix the spacing problem (at the end of my bug report)? -s On Wed, Jun 3, 2009 at 2:49 PM, William Dunlap wrote: > Changing the uninitialized 'w' to 'R_print.na_width' for the complex NA > code fixes up the valgrind complaints on Linux and the ba

Re: [Rd] Print bug for matrix(list(NA_complex_, ...))

2009-06-03 Thread William Dunlap
Changing the uninitialized 'w' to 'R_print.na_width' for the complex NA code fixes up the valgrind complaints on Linux and the bad behavior on Windows: === --- print.c (revision 48703) +++ print.c (working copy) @@ -357,7 +357

[Rd] Would like to add this to example for plotmath. Can you help?

2009-06-03 Thread Paul Johnson
Greetings: I would like comments on this example and after fixing it up, I need help from someone who has access to insert this in R's help page for plotmath. I uploaded a drawing http://pj.freefaculty.org/R/Normal-2009.pdf that is created by the following code http://pj.freefaculty.org/R/Norma

Re: [Rd] Print bug for matrix(list(NA_complex_, ...))

2009-06-03 Thread William Dunlap
> From: William Dunlap > Sent: Wednesday, June 03, 2009 8:58 AM > To: 'Martin Maechler'; Wacek Kusnierczyk > Cc: r-devel@r-project.org > Subject: RE: [Rd] Print bug for matrix(list(NA_complex_, ...)) ... > > >> There is a bug in printing val <- > > matrix(list(NA_complex_,NA_complex_),1). ..

Re: [Rd] Print bug for matrix(list(NA_complex_, ...))

2009-06-03 Thread William Dunlap
> -Original Message- > From: r-devel-boun...@r-project.org > [mailto:r-devel-boun...@r-project.org] On Behalf Of Martin Maechler > Sent: Wednesday, June 03, 2009 2:37 AM > To: Wacek Kusnierczyk > Cc: r-devel@r-project.org > Subject: Re: [Rd] Print bug for matrix(list(NA_complex_, ...)) >

Re: [Rd] Problems with plot and Quartz device

2009-06-03 Thread Simon Urbanek
On Jun 3, 2009, at 4:45 , t...@stat.washington.edu wrote: Full_Name: Thomas Richardson Version: R 2.9.0 GUI 1.28 Tiger build 32-bit (5395) OS: 10.4.11 Submission from: (NULL) (216.254.15.72) I have encountered a problem with points in scatterplots disappearing in a quartz window when it i

Re: [Rd] Problems with plot and Quartz device (PR#13744)

2009-06-03 Thread Simon Urbanek
Thomas, rna is not defined in R, can you, please, supply a reproducible example? From your description I think I know roughly what's going on (Quartz attempts to snap rectangles on pixel boundaries to prevent malignant anti-aliasing effects in image plots and this may somehow interact wit

Re: [Rd] Vectorize fails for function with ... arglist

2009-06-03 Thread Peter Dalgaard
Stavros Macrakis wrote: > Vectorize is defined to return a function that acts as if 'mapply' was > called. > > So we have: > >> mapply(dput,1:2)# mapply form > 1L # calls dput on each element of 1:2 > 2L > [1] 1 2 >> Vectorize(dput)(1:2)# V

[Rd] R-devel:codocClasses() now finds more --> R CMD check warnings

2009-06-03 Thread Martin Maechler
Yesterday, I have commited r48701 | maechler | 2009-06-02 17:11:50 a changed version of tools::codocClasses() which checks S4 class slot documentations in many more cases than previously. This finds slot documentation inconsistencies in many more cases than previously, and you (as packa

Re: [Rd] Print bug for matrix(list(NA_complex_, ...))

2009-06-03 Thread Martin Maechler
> "vQ" == Wacek Kusnierczyk > on Wed, 03 Jun 2009 10:43:25 +0200 writes: vQ> Stavros Macrakis wrote: >> In R 2.8.0 on Windows (tested both under ESS and under R Console in case >> there was an I/O issue) >> >> There is a bug in printing val <- matrix(list(NA_comp

[Rd] Problems with plot and Quartz device (PR#13744)

2009-06-03 Thread tsr
Full_Name: Thomas Richardson Version: R 2.9.0 GUI 1.28 Tiger build 32-bit (5395) OS: 10.4.11 Submission from: (NULL) (216.254.15.72) I have encountered a problem with points in scatterplots disappearing in a quartz window when it is re-sized (to make it larger). I am constructing an 8x12 matrix

Re: [Rd] reference counting bug related to break and next in loops

2009-06-03 Thread Wacek Kusnierczyk
Wacek Kusnierczyk wrote: > > a simplified example may help to get a clear picture: > > i = 1; y = 1:3; > (while(TRUE) { >y[i] = 0 >if (i == 2) break >i = i + 1 >y }) > # 0 0 3 > > i = 1; y = 1:3; > (while(TRUE) { >y[i] = 0 >if (i =

Re: [Rd] Print bug for matrix(list(NA_complex_, ...))

2009-06-03 Thread Wacek Kusnierczyk
Stavros Macrakis wrote: > In R 2.8.0 on Windows (tested both under ESS and under R Console in case > there was an I/O issue) > > There is a bug in printing val <- matrix(list(NA_complex_,NA_complex_),1). > > >> dput(val) >> > structure(list(NA_complex_, NA_complex_), .Dim = 1:2) > > >> p

Re: [Rd] reference counting bug related to break and next in loops

2009-06-03 Thread Wacek Kusnierczyk
William Dunlap wrote: > One of our R users here just showed me the following problem while > investigating the return value of a while loop. I added some > information > on a similar bug in for loops. I think he was using 2.9.0 > but I see the same problem on today's development version of 2.10.0

[Rd] do *not* crosspost! {.... R.dll Reg.,}

2009-06-03 Thread Martin Maechler
> "LY" == Linlin Yan > on Wed, 3 Jun 2009 15:13:53 +0800 writes: LY> What's wrong with the copyright? And how could that trouble your linking? PLEASE, do not spill this thread to R-devel it's been a cross-post R-help + R-devel (something we strongly dislike), and I've *NOT* appr

Re: [Rd] How to generate R objects in C?

2009-06-03 Thread Mathieu Ribatet
This is indeed details in Writing R Extensions. You should have a closer look at sections 5.9.3 and 5.9.4. Look at the pieces of C code, they will help you a lot. cheers, Mathieu Le mercredi 03 juin 2009 à 00:44 +0200, Kynn Jones a écrit : > I'm in the process of coding a parser (in C) to genera

Re: [Rd] [R] FW: R.dll Reg.,

2009-06-03 Thread Linlin Yan
What's wrong with the copyright? And how could that trouble your linking? On Wed, Jun 3, 2009 at 2:53 PM, RamaR Guru wrote: > > From: techzone2...@hotmail.com > To: r-h...@stat.math.ethz.ch; r-help-requ...@stat.math.ethz.ch > Subject: R.dll Reg., > Date: Wed, 3 Jun 2009 11:57:52 +0530 > > Sir, >