Re: [Rd] Speed issue when writing to RGui console from tcl/tk GUI

2011-12-20 Thread peter dalgaard
On Dec 19, 2011, at 11:34 , Richard Cotton wrote: > It seems that there are speed issues when printing to the R console from a > tcl/tk GUI. > > Here are functions to write a lot of output, and to display how long it > takes. > > printsalot <- function(n) > { > for(i in 1:n) cat(i, fill = TRUE

[Rd] Speed issue when writing to RGui console from tcl/tk GUI

2011-12-19 Thread Richard Cotton
It seems that there are speed issues when printing to the R console from a tcl/tk GUI. Here are functions to write a lot of output, and to display how long it takes. printsalot <- function(n) { for(i in 1:n) cat(i, fill = TRUE) } timings <- function(n = 1e3) { print(system.time(printsalot(n)