Re: [Rd] R readline not honoring RCustomCompletion

2010-08-12 Thread Prof Brian Ripley
And where did you find the documentation that it should? Not in the R sources AFAICS The readline documentation suggests that applications should set their name by rl_readline_name. That will be done and documented as from R 2.12.0, but the application name is 'R', not 'RCustomCompletio

Re: [Rd] R readline not honoring RCustomCompletion

2010-08-12 Thread Rafael Laboissiere
* Prof Brian Ripley [2010-08-12 09:04]: > The readline documentation suggests that applications should set > their name by rl_readline_name. That will be done and documented as > from R 2.12.0, but the application name is 'R', not > 'RCustomCompletion' -- and the only example in any of the posti

[Rd] c.POSIXct

2010-08-12 Thread Gabor Grothendieck
Currently if x1 and x2 are POSIXct then c(x1, x2) will not have a tzone attribute even if x1 or x2 or both do but it should. This could be fixed with the following c.POSIXct: c.POSIXct <- function (..., recursive = FALSE) { tzones <- lapply(list(...), attr, which = "tzone") length

Re: [Rd] readline operate-and-get-next

2010-08-12 Thread Prof Brian Ripley
On Sun, 8 Aug 2010, Rafael Laboissiere wrote: Okay, I could not refrain myself and implemented the change in src/unix/sys-std.c. The patch is attached below. I tested it in the 2.11.1 source and it worked fine. At any rate, the patch applies cleanly to the SVN source. Three notes about this

[Rd] accessing tcl variables within R and tcl

2010-08-12 Thread Adrian Waddell
Dear R users, I have some troubles with dealing with tclObj objects. I try to explain it with a toy example: Say I define the following tcl procedure which just prints out each list element library(tcltk) .Tcl('proc test {myList} { foreach i $myList { puts stdout $i } }') and I c

Re: [Rd] readline operate-and-get-next

2010-08-12 Thread Rafael Laboissiere
* Prof Brian Ripley [2010-08-12 18:25]: > Hmm, one of those 'minimal changes' was to omit the copyright and > licence statements. I very much doubt that you have the right to post > copied code without those, and we certainly do not have the right to > use such code in the R sources. I am sorry

Re: [Rd] accessing tcl variables within R and tcl

2010-08-12 Thread Gabor Grothendieck
On Thu, Aug 12, 2010 at 2:14 PM, Adrian Waddell wrote: > Dear R users, > > I have some troubles with dealing with tclObj objects. I try to explain > it with a toy example: > > Say I define the following tcl procedure which just prints out each list > element > > library(tcltk) > .Tcl('proc test {m

Re: [Rd] accessing tcl variables within R and tcl

2010-08-12 Thread Peter Dalgaard
Adrian Waddell wrote: > Dear R users, > > I have some troubles with dealing with tclObj objects. I try to explain > it with a toy example: > > Say I define the following tcl procedure which just prints out each list > element > > library(tcltk) > .Tcl('proc test {myList} { > foreach i $myLis