r-lib/progress

Bad printout in RStudio Server

eliocamp opened this issue · 2 comments

I'm starting to use Rstudio server and found that progress bars fail to print correctly. This is what I'm getting:

pbar_test <- function() {
  pb <- progress::progress_bar$new(total = 100)
  
  for (i in 1:100) {
    Sys.sleep(0.1)
    pb$tick()
  }
}

pbar_test()

pbar_server

As a sanity check, the same testing function works properly on my local instance

pbar_local

Rstudio Server version is 1.0.153 if that helps (I don't admin have access to update it, unfortunately :( )

jxu commented

My guess is that this is an issue with Rstudio's console and carriage return which in most terminals will move the cursor back to start of line, overwriting text. What OS are you on? I have this issue on windows

jxu commented

I was on Version 1.0.153 for Windows and it was broken. I updated to 1.3.1056 and it is fixed now.