[rkward-devel] console bug? (\r)

meik michalke meik.michalke at uni-duesseldorf.de
Tue Sep 11 19:45:22 UTC 2012


hi,

i was just fooling around with setTxtProgressBar() and think there's a bug in 
RKWard's R console when it comes to interpreting "\r". first try the example 
in a plain R console:

<snip>
testit <- function(x = sort(runif(20)), ...){
  pb <- txtProgressBar(...)
  for(i in c(0, x, 1)) {Sys.sleep(0.5); setTxtProgressBar(pb, i)}
  Sys.sleep(1)
  close(pb)
}
testit()
testit(runif(10))
testit(style=3)
</snip>

then run it in RKWard -- while testit() displays the same as in the R session, 
testit(runif(10)) and testit(style=3) squeeze everything into one line without 
returning to the left margin first. could this also be causing the infinite 
"=\n" orgy in the package installation messages?


viele grüße :: m.eik

-- 
dipl. psych. meik michalke
institut f"ur experimentelle psychologie
abt. f"ur diagnostik und differentielle psychologie
heinrich-heine-universit"at d-40204 d"usseldorf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2282 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20120911/bff16f86/attachment.p7s>


More information about the Rkward-devel mailing list