I am wondering if it is possible to update existing text in the R console? For example, if I run a function that takes a little longer to execute, I would like to know how far it is now.
I could achieve this by releasing print("at 10%"), print("at 20%")etc. in the appropriate places of the function. But this can be a relatively long output, as each time it creates a new line.
Is there a way to update the console text from a running function so that it updates the current line in the console and does not create a new line? For example. >at 10%in the console, if necessary, changes to >at 20%.
source
share