\r not recognised by console
Great idea. Happy to test.
Found this small issue that \r is not recognised. So any status or progress bar in text (that rely on \r) don't display correctly.
cat("hello\r123\n") hello|123 # as seen in RStudio, not correct
cat("hello\r123\n") 123lo # correct
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Joe Cheng on 02 Mar, 2011 04:56 PM
Thanks for letting us know! Is this a common thing in R packages?
3 Posted by mdowle on 02 Mar, 2011 06:04 PM
NP. RStudio looks very nice.
txtProgressBar() in utils relies on \r. It's quite useful to see a progress %, or bar, on one line at the console, for example. I don't know how many packages or users use txtProgressBar() or \r directly but I guess it's quite common.
Support Staff 4 Posted by Joe Cheng on 07 Mar, 2011 07:50 PM
Thanks, we've logged a bug for this. (Sorry for the slow reply)
Joe Cheng closed this discussion on 07 Mar, 2011 07:50 PM.