\r not recognised by console

mdowle's Avatar

mdowle

01 Mar, 2011 12:22 PM

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

  1. Support Staff 2 Posted by Joe Cheng on 02 Mar, 2011 04:56 PM

    Joe Cheng's Avatar

    Thanks for letting us know! Is this a common thing in R packages?

  2. 3 Posted by mdowle on 02 Mar, 2011 06:04 PM

    mdowle's Avatar

    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.

  3. Support Staff 4 Posted by Joe Cheng on 07 Mar, 2011 07:50 PM

    Joe Cheng's Avatar

    Thanks, we've logged a bug for this. (Sorry for the slow reply)

  4. Joe Cheng closed this discussion on 07 Mar, 2011 07:50 PM.

Comments are currently closed for this discussion. You can start a new one.