posit-dev / posit-dev/positron

Remote SSH: HTML widget in R doesn't work

Open
#6,015 7 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: remote host bug
Dominant language
TypeScript
Stars
4.3k
Forks
184
Avg merge
1d 11h
Merged PRs (30d)
206

Description

System details:

Positron and OS details:

Positron Version: 2025.01.0 (Universal) build 159
Code - OSS Version: 1.95.0
Commit: bc8820be811f8697ae06e8fda469be39b5fd0f16
Date: 2025-01-09T23:29:00.471Z
Electron: 32.2.1
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Darwin arm64 24.0.0

Interpreter details:

R 4.3.1 in Ubuntu 22.04

Describe the issue:

May be a duplicated issue ( I have searched but not sure). HTML widget in R can not show in remote SSH sessions. It works well in local.

Steps to reproduce the issue:

In remote SSH:

# from https://gt.rstudio.com/articles/case-study-gtcars.html
library(tidyverse)
library(gt)
gtcars_8 <-
  gtcars |>
  group_by(ctry_origin) |>
  slice_head(n = 2) |>
  ungroup() |>
  filter(ctry_origin != "United Kingdom")
gtcars_8 |>
  group_by(ctry_origin) |>
  gt()

Expected or desired behavior:

Showing HTML widget output in Viewer.

Were there any error messages in the UI, Output panel, or Developer Tools console?

No, but viewer can't show it.

Image

Contributor guide

Open the contributing guide

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.

Research direction

Start by reproducing the issue in a remote SSH session with the supplied R gt() example, then compare it with the stated local behavior and inspect the Viewer entry point. Done means the generated HTML widget is shown in Viewer during the remote session without errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
desktop, frontend, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.