progress icon indicating copy to clipboard operation
progress copied to clipboard

Should progress use a custom width option like cli?

Open MilesMcBain opened this issue 5 years ago • 2 comments

This is a kind of reboot of this issue I opened up on cli: https://github.com/r-lib/cli/issues/56

My symptoms with progress are similar to those I describe there, i.e. I have bulk text blowing up my REPL because the progress bars are 10000 characters long. I use this setting because it makes printing of dataframes and tibbles nicer (in ESS).

So right now I have this in my .Rprofile:

options(
  cli.width = 80,
  width = 10000
)

It would be nice if I could limit the progress bars to 80 chars.

MilesMcBain avatar Feb 23 '19 11:02 MilesMcBain

If you want wider tibbles there is already a custom option for that, tibble.width. I don't if there is a great alternative for regular data frames, but you could always define a custom print method if you want. From the documentation options("width") is clearly explicitly meant to be the width of the terminal window, so IMHO I don't think it would be necessary to add an additional option.

jimhester avatar Feb 26 '19 03:02 jimhester

@jimhester this is all true, but it also makes sense to have an option for progress. I think we can just use the same cli.width option.

gaborcsardi avatar Feb 26 '19 09:02 gaborcsardi

As we are focusing on cli now for progress bars, I am going to close this now.

gaborcsardi avatar Nov 01 '23 14:11 gaborcsardi