Package Details: rstudio-desktop 2025.05.0.496-1

Git Clone URL: https://aur.archlinux.org/rstudio-desktop.git (read-only, click to copy)
Package Base: rstudio-desktop
Description: A powerful and productive integrated development environment (IDE) for R programming language
Upstream URL: https://github.com/rstudio/rstudio
Licenses: AGPL-3.0-only
Conflicts: rstudio-desktop
Provides: rstudio-desktop
Submitter: None
Maintainer: xiota
Last Packager: xiota
Votes: 73
Popularity: 0.58
First Submitted: 2011-03-04 15:02 (UTC)
Last Updated: 2025-05-12 06:23 (UTC)

Dependencies (36)

Required by (0)

Sources (4)

Pinned Comments

xiota commented on 2025-03-01 05:16 (UTC) (edited on 2025-05-01 20:46 (UTC) by xiota)

Packaging notes:

  • Given the inconvenience of having this package become unusable for an indefinite amount time, sodeps are used to prevent boost upgrades from breaking this package. Others may be added. Updates may need to be forced with pacman -Syudd prior to rebuilding. This is unnecessary when building in a clean chroot.
  • Any variable declared : ${var:=value} can be set in the environment prior to build.
    • For example: var=value makepkg -rsC; Method for AUR helpers may vary.
    • For clean chroot, try something like: extra-x86_64-build -- var=value

Problems?

  • Try building in a clean chroot.
  • If your distro has delayed updates, you may need to wait a few weeks.
  • Avoid commenting and flagging for the same issue at the same time.
    • Flag for routine and mechanical issues (depends, typos, mistakes, etc)
    • Comment for issues requiring discussion.
    • Please use a pastebin for blocks of text more than a few lines.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 .. 31 Next › Last »

ith140 commented on 2024-10-15 09:38 (UTC)

@xiota,

I tried the launcher and the snippet from @dr_evo, but it still isn't fully compatible (at least with my system as I receive a GLES version 3 being greater than the max supported by my system (2.0)).

I couldn't find anything on how to lower the GLES...

xiota commented on 2024-10-13 17:46 (UTC)

@dr_evo I'll add support to read options from ~/.config/rstudio-flags.conf. I will probably reference your repo as a list of potentially useful flags. Will take a little while because I have a backlog of other packages to update.

dr_evo commented on 2024-10-13 04:13 (UTC)

@xiota I've done some research and added some comments to my script, you can check it out ( https://github.com/ozankiratli/dotfiles/blob/master/.config/sway/scripts/rstudio-wayland ). A secondary launcher might be a good idea to help people using Wayland (I think chromium and electron have no intention of addressing this soon). I think it would be better if the switches could be read from a user-defined file in the .config folder. This is only a workaround, so the switches needed might differ for different system configurations.

JuliusTZM commented on 2024-10-11 17:05 (UTC)

@ith140 Try: # RSTUDIO_QUERY_FONTS=0 rstudio

xiota commented on 2024-10-11 01:39 (UTC)

@dr_evo Don't worry. I'll avoid breaking X11. Would add your script as a secondary launcher rstudio-wayland, or make a new script that reads user-defined options from another file.

dr_evo commented on 2024-10-10 20:19 (UTC) (edited on 2024-10-11 06:16 (UTC) by dr_evo)

@xiota I believe my solution would need testing in X11 and Wayland and maybe in at least two machines before adding it to the package. Currently, the script on my GitHub is enabling some loosely tested features namely WebGPU, and features that depend on other libraries, namely ffmpeg. I never got to get electron to work with vulkan, it is a work in progress. The very stripped-down version (that doesn't trigger any errors on wayland) would be:

rstudio \
   --ozone-platform-hint=auto \
   --use-gl=angle \
   --enable-features=VaapiVideoEncoder,VaapiVideoDecoder,WaylandWindowDecorations,CanvasOopRasterization \
   --enable-gpu-rasterization \
   --enable-accelerated-2d-canvas

I believe this would work in most setups. I think --enable-features switches VaapiVideoEncoder, and VaapiVideoDecoder should be tested on a system where ffmpeg is not installed, and WaylandWindowDecorations should be tested on X11 to see if they cause any issues. I worry that the way I do things might be too eccentric for general use.

I believe if a run script is created, it should first check for XDG_SESSION_TYPE and pass the proper flags according to the session type. The problem arises from slow development on electron when it comes to Linux. All these steps I'm describing are merely workarounds.

Edit: I found out that some of the flags are obsolete. I removed them from the snippet above.

xiota commented on 2024-10-10 18:32 (UTC) (edited on 2024-10-10 18:34 (UTC) by xiota)

@ith140 If you can confirm whether dr_evo's script resolves your problem, I'll consider adding it to the package.

Another option is to try to enable reading from a flags file.

dr_evo commented on 2024-10-10 15:54 (UTC)

@ith140 The problem you mention is I believe related to electron. If you're using Wayland, I have been keeping an open issue on rstudio repo. You may need to set "--use-gl=angle" when starting rstudio. Check this out and keep an eye on: https://github.com/rstudio/rstudio/issues/11962 I'll keep posting workarounds, until electron provides wayland support by default with proper GPU support.

It is known that rstudio on electron is laggy and buggy. I've also been playing around flags to turn on as many hardware acceleration features as possible, I managed to get rstudio to work much more smoothly on my machine. I have a script to start rstudio, you can check it out. It might not necessarily work for you but it might give you a starting point. https://github.com/ozankiratli/dotfiles/blob/master/.config/sway/scripts/rstudio-wayland

ith140 commented on 2024-10-10 14:44 (UTC) (edited on 2024-10-10 14:57 (UTC) by ith140)

I've had an issue with the new package. It builds successfully for me, but when I try to execute rstudio I get: [61760:1010/163700.261532:ERROR:gl_factory.cc(120)] Requested GL implementation (gl=none,angle=none) not found in allowed implementations: [(gl=egl-angle,angle=default),(gl=egl-gles2,angle=none)]. [61760:1010/163700.274374:ERROR:viz_main_impl.cc(198)] Exiting GPU process due to errors during initialization Segmentation fault (core dumped)

Am I missing a package? It could also be because I'm running this inside a VM (however it used to work for me).

JuliusTZM commented on 2024-10-09 11:38 (UTC) (edited on 2024-10-09 11:40 (UTC) by JuliusTZM)

RSTUDIO_QUERY_FONTS=0 rstudio

On my Manjaro box this is the only way I can get to startup RStudio after upgrading from the previous version. Any idea to solve the font issue? Only "Ubuntu Mono" font is listed in the appearance option.