Re: [Rd] apropos changes in r-devel: intended feature or bug?

2006-12-22 Thread Martin Maechler
DeepS == Deepayan Sarkar [EMAIL PROTECTED] on Thu, 21 Dec 2006 22:07:27 -0800 writes: DeepS The old apropos started with: if DeepS (!is.character(what)) what - DeepS as.character(substitute(what)) DeepS The new one has: DeepSif (character.only)

Re: [Rd] variable scope in update(): bug or feature?

2006-12-22 Thread Martin Maechler
Hi Michael, can you please - use a simple reproducible example -- just for the convenience of your readers - use R-help. This is really a question about R. Michael == Michael [EMAIL PROTECTED] on Thu, 21 Dec 2006 11:08:15 -0600 writes: Michael I stumbled upon this when using

Re: [Rd] tiny typo in ?formals

2006-12-22 Thread Brian Ripley
Thanks! I took the opportunity to run aspell over all the help pages, so this turned into a few dozen small corrections. On Thu, 21 Dec 2006, Ben Bolker wrote: in 2.4.1: under Value, The replacment [sic] form sets the formals of a function ... -- Brian D. Ripley,

[Rd] substitute creates an object which prints incorrectly (PR#9427)

2006-12-22 Thread Bill . Venables
The function substitute seems to fail to make a genuine substitution, although the printed verision seems fine. Here is an example. m - substitute(Y - function(x) FUN(x+1), + list(Y = as.name(y), FUN = as.name(sin))) m y - function(x) sin(x + 1) eval(m) y function(x) FUN(x+1) However the

Re: [Rd] substitute creates an object which prints incorrectly (PR#9427)

2006-12-22 Thread Peter Dalgaard
[EMAIL PROTECTED] wrote: The function substitute seems to fail to make a genuine substitution, although the printed verision seems fine. Here is an example. m - substitute(Y - function(x) FUN(x+1), + list(Y = as.name(y), FUN = as.name(sin))) m y - function(x) sin(x +

Re: [Rd] substitute creates an object which prints incorrectly (PR#9427)

2006-12-22 Thread Gabor Grothendieck
Try issuing the command: options(keep.source = FALSE) prior to running the code you displayed to force the actual source, rather than the source attribute, to be displayed by print when printing functions. On 12/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: The function substitute seems

Re: [Rd] apropos changes in r-devel: intended feature or bug?

2006-12-22 Thread Kurt Hornik
Martin Maechler writes: DeepS == Deepayan Sarkar [EMAIL PROTECTED] on Thu, 21 Dec 2006 22:07:27 -0800 writes: DeepS The old apropos started with: if DeepS (!is.character(what)) what - DeepS as.character(substitute(what)) DeepS The new one has: DeepS if (character.only)

Re: [Rd] apropos changes in r-devel: intended feature or bug?

2006-12-22 Thread Luke Tierney
On Fri, 22 Dec 2006, Kurt Hornik wrote: Martin Maechler writes: DeepS == Deepayan Sarkar [EMAIL PROTECTED] on Thu, 21 Dec 2006 22:07:27 -0800 writes: DeepS The old apropos started with: if DeepS (!is.character(what)) what - DeepS as.character(substitute(what)) DeepS The new one has:

Re: [Rd] apropos changes in r-devel: intended feature or bug?

2006-12-22 Thread Martin Maechler
Ok, so be it: We have seen that both apropos() and find() have used `some' non-standard evaluation up to R 2.4.1 which gave quite incosistent behavior. Getting rid of non-standard evaluation get's rid of all inconsistencies but of course is not back-compatible either. I'll do this. Martin

Re: [Rd] apropos changes in r-devel: intended feature or bug?

2006-12-22 Thread Gabor Grothendieck
I have not been followin this thread but if apropos is changed note that the Help | Apropos menu item in Windows may to be changed depending on what the change is. On 12/22/06, Martin Maechler [EMAIL PROTECTED] wrote: Ok, so be it: We have seen that both apropos() and find() have used

[Rd] Base R: applying min/max functions() to character string vectors (PR#9428)

2006-12-22 Thread xiao . gang . fan1
Full_Name: Xiao Gang FAN Version: 2.4.0 OS: Windows XP Submission from: (NULL) (159.50.101.9) Dear All, This is not really a bug report, but rather a change wish to the Base R behaviour on some functions when applying them to character strings vectors/matrices. Actually in R, we can do thinks

Re: [Rd] variable scope in update(): bug or feature?

2006-12-22 Thread Michael
On 22 Dec 2006, Martin Maechler wrote: - use a simple reproducible example -- just for the convenience of your readers Sending email directly to r-devel doesn't seem to work for me. So I'm resend this via gmane. Here is an example: rm (list = ls()) x - 1:10 mdata - data.frame (z =

Re: [Rd] apropos changes in r-devel: intended feature or bug?

2006-12-22 Thread Deepayan Sarkar
On 12/22/06, Martin Maechler [EMAIL PROTECTED] wrote: DeepS == Deepayan Sarkar [EMAIL PROTECTED] on Thu, 21 Dec 2006 22:07:27 -0800 writes: DeepS The old apropos started with: if DeepS (!is.character(what)) what - DeepS as.character(substitute(what)) DeepS The new one

Re: [Rd] variable scope in update(): bug or feature?

2006-12-22 Thread Prof Brian Ripley
You haven't told us what you consider to be the bug here. Note that the help page for update says 'update' will update and (by default) re-fit a model. It does this by extracting the call stored in the object, updating the call and (by default) evaluating that call. Sometimes

Re: [Rd] substitute creates an object which prints incorrectly (PR#9427)

2006-12-22 Thread Bill.Venables
Thanks Peter. I see the dilemma. It is serious in my view, though, even if I can't see an elegant way round it. I guess the only possibilities are 1. Only keep the source in printing or, much more seriously, dumping, if the source attribute parses to an object structually identical to the