Re: [Rd] pattern in history

2006-04-11 Thread Prof Brian Ripley
On Tue, 11 Apr 2006, Romain Francois wrote: Le 11.04.2006 14:12, Prof Brian Ripley a écrit : That's an interesting suggestion, but 1) it is not a good idea to change the order of arguments in a function. Yes, my mystake. It's because i like to call 'history(something)' directly and not 'histo

Re: [Rd] pattern in history

2006-04-11 Thread Romain Francois
Le 11.04.2006 14:12, Prof Brian Ripley a écrit : > That's an interesting suggestion, but > > 1) it is not a good idea to change the order of arguments in a function. Yes, my mystake. It's because i like to call 'history(something)' directly and not 'history(pattern=something)'. I hadn't in mind th

Re: [Rd] pattern in history

2006-04-11 Thread Prof Brian Ripley
That's an interesting suggestion, but 1) it is not a good idea to change the order of arguments in a function. 2) is the 'unique' argument useful? I cannot see it being used if there is no pattern search, nor I do see the merit in showing repeated lines if I have subselected. 3) like ls(), tes

[Rd] pattern in history

2006-04-11 Thread Romain Francois
Hi, Sometimes I need to consult the history of commands that are matching a regex, so I modified the utils::history function for that purpose. I found it useful. I append the code ( I only added the two lines with #**) Romain. history2 <- function (pattern="", max.show = 25, reverse = FALSE,