Skip to content

Bundle RStudio Desktop for Linux as a Flatpak, Snap, or AppImage #3079

Open

Description

@jmcphers

As of this writing, we are currently building no fewer than five different versions of RStudio Desktop for Linux:

  1. for RedHat/CentOS based systems;
  2. for Ubuntu based systems;
  3. for OpenSuSE based systems with an old libssl;
  4. for OpenSuSE based systems with a new libssl; and
  5. for Debian 9+ based systems.

Despite this somewhat cumbersome matrix we still don't support many platforms and distributions.

This is a general issue with Linux applications, at least on the desktop; because of differing installation systems, packaging requirements, and system libraries, packages conforming to each system's idiosyncrasies are necessary.

Several attempts have been made to solve the problem by introducing an installation platform which encourages the bundling of dependencies (rather than relying on system versions), making application deployment on Linux more like it is on Mac/Windows. In true Linux fashion, there are many competing efforts:

Flatpak - https://flatpak.org/

Snapcraft - https://snapcraft.io/

AppImage - https://appimage.org/

We should evaluate these technologies in the next release cycle or so and see if any would be a good choice for RStudio Desktop (and in particular whether it'd allow us to simplify things or simply introduce a sixth variation!).

Activity

  1. added this to the v1.3 milestone on Jun 26, 2018
  2. btreut commented on Jul 28, 2018

    @btreut

    what about a kind of voting/poll for getting some impression about which version would currently be most attractive?

    Alexander Wilms aready provided a manifest for creating a flatpak of RStudio.

    I would vote for flatpak. Who else?

  3. probonopd commented on Aug 2, 2018

    @probonopd

    I would vote for #AppImage, because a properly built one will run on both Ubuntu and Fedora (and most other popular mainstream Linux distributions) out-of-the-box.

  4. KIC commented on Aug 3, 2018

    @KIC

    I vote for snap as this seems to be the winning standard at least for developers. I have vscode, node and intellij via snap as well as a whole developers kubernetis single node cluster installed via snap.

  5. branchus commented on Aug 21, 2018

    @branchus

    I would vote the AppImage
    Thanks

  6. btreut commented on Sep 5, 2018

    @btreut

    today I found: another instruction for creating/installing rstudio flatpak. Does anybody have experiences with it?

  7. J-J-Chiarella commented on Sep 16, 2018

    @J-J-Chiarella

    if the straw poll is still on, I vote flatpak. It is the most "usable" to the largest group and offers the best system of sandboxing. AppImage has its pluses and is the most like a windows self-contained .exe, but there are reasons it hasn't caught on or undergone the intense development of flatpak or snap in the past couple of years.

  8. probonopd commented on Sep 18, 2018

    @probonopd

    @J-J-Chiarella AppImage is seeing great momentum with more and more upstream applications using the format and is being developed actively in the community (over 3,600 stars on GitHub). Unlike the other two solutions, it is not pushed by one of the large Linux distribution companies, and hence does not have the same level of PR though.

    The point, however, is: Flatpak/snap (deep system integration) one the one hand and AppImage (portable one-file apps) on the other hand serve different purposes. So why not have both.

  9. Enchufa2 commented on Oct 31, 2018

    @Enchufa2
    Contributor

    Snap was designed with application stores and communication interfaces between apps in mind, while Flatpak was developed with graphical applications and runtimes in mind. IMHO, snap is best suited for servers and in general for headless devices, while Flatpak is best suited for desktops.

    E.g., Fedora just released Fedora Silverblue, a variant of Fedora Workstation which is an immutable OSTree-based image + Flatpak for desktop apps (+ Fedora Toolbox to enable containerised mutable development environments).

  10. JBuursma commented on Nov 26, 2018

    @JBuursma

    I thank the RStudio team for considering this issue. I know Linux users are probably a small percentage of your user base & the competing standards makes supporting them hard (the fact that the first three comments gave three different preferences is so classic), so I appreciate your efforts.

    Question: what problem(s) are you trying to solve by supporting another packaging format? The first sentence of this thread mentions the desire to support as many distros as possible. Which distros are not currently supported that you want to support? I don't see Arch there, but I believe RStudio is in the AUR. So... Slackware? Puppy Linux?

    In my mind, the biggest pain point of the current RStudio packaging approach is not which distros are supported (I mostly live in deb land, so I'm feeling sufficiently supported), but greater user-friendliness. I would love a packaging format that was able to update automatically without having to manually redownload a binary from the RStudio download page every so often. I know that both snap & flatplak have this feature (although for some distros you might have to manually run snap refresh or flatpak update). Does AppImage?

    I also think AppImage is less broadly user-friendly in that it doesn't automatically install to the system menu like snap & flatpak do. Downloading, chmod'ing, and running from the terminal means it might be great for power users & certain specific use cases, but be otherwise less friendly. (Different purposes, as probonopd says.)

    Again, thanks for your consideration and your great software.

  11. jmcphers commented on Nov 26, 2018

    @jmcphers
    MemberAuthor

    what problem(s) are you trying to solve by supporting another packaging format?

    1. Reduction of the number of platforms we have to build and test for. A relatively self-contained image would reduce development complexity and allow us to better focus our testing efforts.
    2. Insulation from system dependencies. External libraries change in incompatible ways often on Linux; a recent example is libgstreamer-0.1, which RStudio depends on, but which Debian removed in Debian 9. When Debian removed it, we had to scramble to make custom Qt 5 builds compatible with Debian 9, and produce a new, separate RStudio release for Debian 9 users. Most of these package formats bundle dependencies to an extent, which helps slow down the treadmill.
    3. Improved installation (and possibly upgrade) experience for end users: just download and run it, like you can on Mac and Windows. If you're on a non-mainstream distribution, or an usually old or new one, or have trouble with dependencies, installation can be a challenge. Most of these alternative packaging formats help provide an escape hatch for this long tail.
  12. wilx commented on Nov 26, 2018

    @wilx

    Gstreamer 0.1 has been dead for years now. Why are you depending on technology that has become obsolete in 2012?

  13. 176 remaining items

  14. relbus22 commented on May 18, 2023

    @relbus22

    @firefoxlover

    echo "alias rstudio='distrobox-enter Fedora -- rstudio'" >> ~/.bashrc
    echo "alias rstudio='distrobox-enter Fedora -- rstudio'" >> ~/.config/fish/config.fish

    May I ask, what are these two lines for?

  15. btreut commented on May 19, 2023

    @btreut

    May I ask, what are these two lines for?

    to call rstudio easily on the command line (bash/fish)

  16. secretmango commented on May 19, 2023

    @secretmango

    @relbus22 I echo = repeat the words in brackets. Using >> I can append the output of the echo to a file. > would write it to that file and overwrite whats there, >> puts it to the end of the file.

    ~ is short for the users homedir, also /home/$USER or with the manual name.

    I use bash as system shell, as everything works. But fish is way nicer for normal usage, as long as I dont execute complex bash commands in it, that are just different on fish. Mainly it looks nice, has easy configs, autocompletion, better TAB preview and thats it.

    So I add the alias to both my configs. The configs are loaded with the shell, as if the commands were executed manually. This means the aliases and way more are applied with the shell.

  17. relbus22 commented on May 20, 2023

    @relbus22

    I use bash as system shell, as everything works. But fish is way nicer for normal usage, as long as I dont execute complex bash commands in it, that are just different on fish. Mainly it looks nice, has easy configs, autocompletion, better TAB preview and thats it.

    @firefoxlover thank you for replying. Good to learn some bash.
    I have wondered for some time about fish and zsh who use linux, how do they go about installing stuff and do all sorts of shell things usually available in bash?

  18. relbus22 commented on May 20, 2023

    @relbus22

    Hi y'all,

    I made three short videos to show how to install RStudio on a distrobox in a GUI way using a software celled BoxBuddy:
    1st video
    2nd video
    3rd video

    Both DistroBox and Box Buddy are available in many distros, to download:
    https://podman.io/docs/installation
    https://github.com/89luca89/distrobox#installation
    (QT creator for linux is needed for BoxBuddy, I can't remember but I think so)
    https://github.com/Dvlv/BoxBuddy

    @firefoxlover @btreut Did you manage to daily drive RStudio from a distrobox? How was your experience

  19. btreut commented on May 23, 2023

    @btreut

    ...daily drive RStudio from a distrobox? How was your experience

    @relbus22 not yet daily drive, only from time to time, since I am still learning R & RStudio. As far as I can see, RStudio is a bit demanding and it is running a little bit slow. This might be caused also by my low end notebook (Celeron N3450 and only 4 GB RAM).

  20. aiqc commented on Jan 13, 2024

    @aiqc

    Flatpak seems here to stay. Devtools and mainstream apps alike have adopted it: VS code, pycharm, sublime text, podman, slack, chrome, spotify, vlc, zoom, firefox, postman, discord, etc.

    Docker just put flatpak on their Q1 roadmap:
    docker/desktop-feedback#461

  21. secretmango commented on Jan 14, 2024

    @secretmango

    Docker Desktop which is just a GUI client. They are not putting Docker into Flatpak, which makes no sense.

    It would be best if RStudio could install the modules inside its data directory (~/.var/app/...). I think that is compliant with how Flatpak works, does not require additional packaging and does not rely on static permissions to directories outside the sandbox.

    It would be best for RStudio to implement xdg-desktop file pickers, so that it doesnt need any static permissions apart Network.

    QGis, another app that also uses modules and that I currently run through Distrobox, has a Flatpak that just needs some fixing.

    Distrobox is another distro on top of your Distro. Extra RAM consumption and pretty inefficient. Also it has no GUI permission system and still relies on individual Distro packaging.

  22. rdong8 commented on May 29, 2024

    @rdong8

    I hope this is still being considered. I'm unwilling to install the Fedora package for RStudio because it wants to downgrade my version of g++ so I'm forced to use VS Code for now. With a Flatpak or Snap, the Rstudio team would only need to maintain a single version for all Linux distributions, and we wouldn't have to worry about it breaking our other system applications.

  23. markushhh commented on Jun 25, 2024

    @markushhh

    @rdong8 you can install it within a distrobox/toolbox like I do. There are some minor inconveniences.

  24. DemiMarie commented on Oct 29, 2024

    @DemiMarie

    I recommend shipping a Snap for Ubuntu and a Flatpak for every other distribution.

  25. btreut commented on Oct 30, 2024

    @btreut

    looks like this

    picsel2 mentioned this issue last week
    flathub/flathub#5734

    is progress towards a flatpak

  26. nicole-jf commented on May 21, 2025

    @nicole-jf

    looks like this

    picsel2 mentioned this issue last week
    flathub/flathub#5734

    is progress towards a flatpak

    unfortunately seems like it stalled now

  27. calyle commented on Oct 20, 2025

    @calyle

    So which man can help us?

  28. sachinchaudhary1808 commented on Dec 9, 2025

    @sachinchaudhary1808

    i vote for flatpak

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions