@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.
Search Criteria
Package Details: rstudio-desktop 2024.09.0.375-7
Package Actions
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.119933 |
First Submitted: | 2011-03-04 15:02 (UTC) |
Last Updated: | 2024-09-29 05:40 (UTC) |
Dependencies (29)
- boost-libs
- dbus (dbus-gitAUR, dbus-x11-gitAUR, dbus-selinuxAUR)
- hicolor-icon-theme (hicolor-icon-theme-gitAUR)
- hunspell-en_US (hunspell-en_us)
- libcups (libcups-gitAUR, cups-gitAUR, libcups-gssapiAUR)
- mathjax2
- nspr (nspr-hgAUR)
- nss (nss-hgAUR)
- pandoc (pandoc-sile-gitAUR, pandoc-static-gitAUR, pandoc-binAUR, pandoc-cli)
- r (r352AUR, r-mklAUR)
- apache-ant (ant-gitAUR, ant) (make)
- boost (boost-gitAUR) (make)
- cmake (cmake-gitAUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- jdk11-openjdk (jdk11-temurinAUR) (make)
- libcups (libcups-gitAUR, cups-gitAUR, libcups-gssapiAUR) (make)
- ninja (ninja-kitwareAUR, ninja-memAUR, ninja-fuchsia-gitAUR, ninja-gitAUR, ninja-jobserverAUR) (make)
- npm (corepackerAUR, python-nodejs-wheelAUR) (make)
- openssl (openssl-gitAUR, openssl-staticAUR) (make)
- pam (pam-selinuxAUR) (make)
- Show 9 more dependencies...
Required by (0)
Sources (3)
xiota commented on 2024-10-11 01:39 (UTC)
dr_evo commented on 2024-10-10 20:19 (UTC)
@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-gpu-compositing \
--enable-accelerated-2d-canvas \
--enable-accelerated-video-decode
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.
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.
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.