Skip to content

Request: Positron #451

Closed as not planned
Closed as not planned

Description

@Aman9das

Its a Datascience-focused VSCode fork from https://posit.co

homepage: https://positron.posit.co/

Could this be feasibly packaged for flatpark? It needs similar permissions as original vscode: https://github.com/flathub/com.visualstudio.code to access system R install

Benefit: Enables install on Atomic distributions, (The R packages are installed by user at user-level)

Activity

  1. jing2uo commented on Sep 30, 2026

    @jing2uo
    Collaborator

    Thanks for the request, and sorry for the quiet — here's the reason.

    Shipping the Positron editor itself is straightforward: there's an official .deb we could wrap. The problem is using the R you've installed on the host. Positron's R console runs through the ark kernel, which loads R's shared library (libR.so) into its own process. Inside the sandbox, the host's libR.so and the system libraries it links against (BLAS, ICU, etc.) aren't available, and they wouldn't match the Flatpak runtime anyway. That's different from VS Code, where a terminal or flatpak-spawn --host is enough to reach host tools.

    So the only ways I can see are to bundle R inside the sandbox, which would also need to cover the system libraries user-installed R packages compile against, or to run the kernels on the host from outside the sandbox. Both are substantial, and I haven't found a clean way to do either, so this is on hold for now.

    In the meantime, installing the official .deb inside a distrobox/toolbox container works on atomic distros, with R and Positron in the same container.

  2. Aman9das commented on Sep 30, 2026

    @Aman9das
    Author

    Would it be feasible to publish this without bundling R regardless for testing purposes? Afaik the R path can be changed in the settings. Maybe by giving read permissions it'll be usable

  3. jing2uo commented on Oct 15, 2026

    @jing2uo
    Collaborator

    Unfortunately read access isn't enough. Pointing Positron at the host's R means ark loads the host's libR.so, and that library depends on host libraries (BLAS, ICU, readline, gfortran) that aren't visible inside the sandbox and would clash with the runtime's glibc if forced in. The R launcher script also hardcodes /usr/lib/R, which inside the sandbox is the runtime, not your system. So a build without R would most likely fail as soon as the R console starts, and I'd rather not publish a package that's broken out of the box.

    I'm closing this as not planned for now. The distrobox/toolbox route with the official .deb is still the best option on atomic distros. If Positron ever gains a way to run its kernels outside the editor process, I'm happy to revisit.

  4. Aman9das commented on Oct 15, 2026

    @Aman9das
    Author

    Understandable thanks

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions