On 11 Jan 2012, at 14:15, Adam Strzelecki wrote:
I also find TM2 R bundle to work horribly slow for autocompletion. Like 5-10 seconds when ^.
Hi,
I'll wait a bit to update the R bundles incl support for TM2 since I'm rather busy and I do not know what Allan will change for the first official TM2 release.
Due to completion, well, this is the R code which will be executed
TM_RdaemongetCompletionList <- function(x,ic=F) { invisible(help.search("^§!#%$"));db<-utils:::.hsearch_db() a<-db$Alias[grep(paste("^",x,sep=""),db$Alias[,1],ignore.case=ic,perl=T),c(1,3)] if(is.null(dim(a))) {a<-matrix(a,ncol=2)} a<-a[grep("[<,]|-(class|package|method(s)?)|TM_Rdaemon",a[,1],invert=T),] if(is.null(dim(a))) {a<-matrix(a,ncol=2)} cat(sort(apply(a,1,function(x)paste(c(x[1],x[2]),collapse='\t'))),sep='\n') }
You can try e.g.
TM_RdaemongetCompletionList('q')
Only the first invocation could be a bit slower if the TM R helper daemon does not yet run.
Cheers, --Hans