Rstudio progress bar handlers don't work by default

Open
#650 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
r
Domain
cli

Research direction

Start at cli:::builtin_handler_rstudio$able() and inspect how it compares .Platform$GUI with the expected RStudio value. The work is done when options(cli.progress_handlers='rstudio') recognizes the RStudio environment instead of requiring progress_handlers_only.

Written by the indexing model from the issue text.

Description

bug

Using options(cli.progress_handlers='rstudio') doesn't work, due to cli:::builtin_handler_rstudio$able() returning FALSE.

Looking at the code for the function, it is checking that .Platform$GUI == "Rstudio", while for me at least (runnning RStudio 2022.07), it is "RStudio", with a capital S.

At the moment I can work around by doing options(cli.progress_handlers_only='rstudio'), as that bypasses the $able checks, but it would be better to just do a case-insensitive check (assuming that it was indeed Rstudio at some point in the past).

Thanks,

Charles

Dominant language
R
Stars
726
Forks
94
Avg merge
3h 35m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from r-lib/cli

All issues in r-lib/cli

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.