Skip to content

Packages pane shows an unlabeled Browse button for packages with no browse URL #19470

Closed

Description

@gtritchie

Found while reviewing the fix for #19332.

System details

RStudio Edition : Desktop or Server
RStudio Version : all current releases
OS Version      : any
R Version       : any

Describe the problem in detail

The Packages pane shows the Browse button for any package with a non-base source (showButtonImpl in src/gwt/src/org/rstudio/studio/client/workbench/views/packages/PackagesPane.java), even when it has no browse URL. .rs.inferPackageBrowseUrl returns "" for, for example, a package installed from a local path (source Local [path], no remote host).

For those rows:

  • the Browse column's title provider returns "", so the image has an empty alt and the span an empty title. The button has no accessible name and no tooltip.
  • clicking it calls openWindow with an empty URL.

Steps to reproduce

  1. Install a package from a local source directory, e.g. install.packages("path/to/pkg", repos = NULL, type = "source") or remotes::install_local().
  2. Look at its row in the Packages pane.

Expected

Rows with no browse URL don't show a Browse button.

Activity

  1. self-assigned this
    on Nov 6, 2026
  2. added theissue type on Nov 6, 2026
  3. gtritchie commented on Nov 8, 2026

    @gtritchie
    MemberAuthor

    Related: the fix for #19471 adds an ImageButtonColumn constructor that takes separate alt text and tooltip providers (the existing constructors use one string for both). It hasn't merged yet.

    Whoever fixes this issue could also use it for the Browse column. Its accessible name currently includes the URL, e.g. "Browse package on GitHub [https://github.com/...]" (browsePackageOn / browsePackageLabel), so screen readers read the URL out. With the new constructor, the alt text could name the action (e.g. "Browse dplyr on GitHub") and the URL could stay in the tooltip, as #19471 does for the Help column.

  4. gtritchie commented on Nov 8, 2026

    @gtritchie
    MemberAuthor

    Also in this pane, the Remove button doesn't name the package, they all just say "Remove package". So we should fix this as part of this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions