Package Details: rstudio-desktop 2024.09.1.394-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.049943
First Submitted: 2011-03-04 15:02 (UTC)
Last Updated: 2024-11-11 05:37 (UTC)

Pinned Comments

trap000d commented on 2024-05-16 21:42 (UTC) (edited on 2024-05-28 20:09 (UTC) by trap000d)

A note for users.

This package is quite complex. It MAY not be built because of OTHER issues. I always build, install and test it on at least two different machines. Only after that I would push a new version to AUR.

Please try some generic solutions before reporting of build problems:

1) Update all other packages (sudo pacman -Syu),

2) Clean up yay and/or makepkg caches ('yay -Sc', 'rm -rf /var/tmp/makepkg'),

3) Be sure you've got enough RAM (8 GB or more is highly recommended) and space on disk (at least 3 GB).

4) Is your Internet connection is stable, fast and not blocked somewhere?

trap000d commented on 2022-07-05 20:32 (UTC) (edited on 2022-10-03 06:28 (UTC) by trap000d)

PLEASE READ THIS MESSAGE BEFORE COMPLAINING FOR LIBBOOST

When boost is updated to a new version and you see an error message about missing libboost*.so, you will need to rebuild and reinstall the rstudio-desktop package.

trap000d commented on 2022-02-19 06:20 (UTC) (edited on 2022-02-19 06:21 (UTC) by trap000d)

Build logic is slightly changed due to changes in upstream. As they've introduced new project format (quarto), it contradicted with standard Arch package base. In brief, quarto contains pandoc as part of itself, so it's pretty hard to keep together system pandoc and embedded quarto.

So I've "resolved" it such way: if there is "quarto*" package installed, then rstudio-desktop will pick it up and use. Otherwise (not installed), quarto support in rstudio will be disabled.

'quarto' is added as optional dependency.

Latest Comments

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

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.

jdarch commented on 2024-09-29 02:22 (UTC)

@xiota Looks like this build requires setting options(rstudio.copilot.nodeBinaryPath = "/usr/bin/node")" again for copilot to be able to start

dr_evo commented on 2024-09-28 20:12 (UTC)

Hi, I just built the updated package; it builds fine without quarto. However, when I try to start rstudio, it crashes due to invalid version specification. Here is the error:

ERROR r error 4 (Error : invalid version specification ‘2024.09.0.’|||) [errormsg: Error : invalid version specification ‘2024.09.0.’|||]; OCCURRED AT rstudio::core::Error rstudio::r::exec::evaluateString(const std::string&, SEXPREC**, rstudio::r::sexp::Protect*, EvalFlags) src/cpp/r/RExec.cpp:388

xiota commented on 2024-09-27 20:25 (UTC) (edited on 2024-09-28 23:15 (UTC) by xiota)

Package should be buildable without quarto installed now. Leaving some trap000d comments pinned because they should still be relevant.