I installed Fedora 41 and after doing this RStudio has disappeared from my applications and when I try to do ‘sudo dnf install rstudio-desktop’ I get this message “No match for argument: rstudio-desktop.” I checked and I still have all of the RPM fusion repositories. This is weird because this command worked fine previously. Could this be because there is not yet a package created for RStudio for Fedora 41?
Rstudio switched from Qt to Electron.
Which is like the worst thing you can do
Fedora dropped building them because of that.
@iucar has the cran COPR, but also a COPR for RStudio using Electron
What is the difference between the two links you gave me? I believe the second is solely for installing rstudio-desktop. I don’t understand the point of the first link. What is the advantage of installing R packages through COPR as opposed to installing them the usual way? Does this avoid the need to wait for C++ compilation or something?
Can you explain the “non-critical error” in the installation output here?
wiking@fedora:~$ sudo dnf install R-CoprManager
Updating and loading repositories:
Copr repo for cran owned by iucar 100% | 4.8 MiB/s | 12.2 MiB | 00m03s
Repositories loaded.
Package Arch Version Repository Size
Installing:
R-CoprManager noarch 0.5.7-1.fc41.copr7426352 copr:copr.fedorainfracloud.org:iucar:cran 111.3 KiB
Installing dependencies:
R-CoprManager-selinux noarch 0.5.7-1.fc41.copr7426352 copr:copr.fedorainfracloud.org:iucar:cran 10.0 KiB
Transaction Summary:
Installing: 2 packages
Total size of inbound packages is 103 KiB. Need to download 103 KiB.
After this operation, 121 KiB extra will be used (install 121 KiB, remove 0 B).
Is this ok [y/N]: y
[1/2] R-CoprManager-selinux-0:0.5.7-1.fc41.copr7426352.noarch 100% | 56.0 KiB/s | 19.1 KiB | 00m00s
[2/2] R-CoprManager-0:0.5.7-1.fc41.copr7426352.noarch 100% | 166.3 KiB/s | 83.8 KiB | 00m01s
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[2/2] Total 100% | 203.4 KiB/s | 102.9 KiB | 00m01s
[1/3] https://download.copr.fedorainfracloud.org/results/iucar/cran/pubkey.gpg 100% | 3.2 KiB/s | 985.0 B | 00m00s
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[3/3] Total 100% | 203.4 KiB/s | 102.9 KiB | 00m01sImporting PGP key 0x1A3B4456:
UserID : "iucar_cran (None) <iucar#cran@copr.fedorahosted.org>"
Fingerprint: 3124D2EF76DA4D972F6BE4AC9D60CBB71A3B4456
From : https://download.copr.fedorainfracloud.org/results/iucar/cran/pubkey.gpg
Is this ok [y/N]: y
The key was successfully imported.
[1/4] Verify package files 100% | 666.0 B/s | 2.0 B | 00m00s
[2/4] Prepare transaction 100% | 9.0 B/s | 2.0 B | 00m00s
[3/4] Installing R-CoprManager-selinux-0:0.5.7-1.fc41.copr7426352.noarch 100% | 4.2 KiB/s | 10.3 KiB | 00m02s
>>> Running post-install scriptlet: R-CoprManager-selinux-0:0.5.7-1.fc41.copr7426352.noarch
>>> Non-critical error in post-install scriptlet: R-CoprManager-selinux-0:0.5.7-1.fc41.copr7426352.noarch
>>> Scriptlet output:
>>> /var/tmp/rpm-tmp.HnEM7q: line 10: /usr/sbin/rm: No such file or directory
>>> Failed to resolve typeattributeset statement at /var/lib/selinux/targeted/tmp/modules/200/snappy/cil:223
>>> Failed to resolve AST
>>> /usr/sbin/semodule: Failed!
>>>
>>> Stop post-install scriptlet: R-CoprManager-selinux-0:0.5.7-1.fc41.copr7426352.noarch
[4/4] Installing R-CoprManager-0:0.5.7-1.fc41.copr7426352.noarch 100% [==================] | 112.7 KiB/s | 124.4 KiB | -00m00s
>>> Running trigger-install scriptlet: glibc-common-0:2.40-3.fc41.x86_64warning: posix.fork(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.spawn() or rpm.execute() instead
warning: posix.wait(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.spawn() or rpm.execute() instead
[4/4] Installing R-CoprManager-0:0.5.7-1.fc41.copr7426352.noarch 100% | 95.6 KiB/s | 124.4 KiB | 00m01s
Complete!
Hi, maintainer here. @boredsquirrel perfectly summarized what happened and the current status. I announced it here. I always use CRAN’s R-SIG-Fedora mailing list for these kind of announcements.
A few more notes:
- Installing R packages from the iucar/cran Copr is blazing fast. That is the main advantage. See this talk for some motivation and so on.
- Thanks for the report above. The error you get is non-critical, meaning that R-CoprManager should still work, but I should take a look. I’ll trigger a rebuild to see if it solves the issue.
It seems that the rebuild solved the issue.
the first one is a copr repo packaging all (?) R plugins as RPM packages. It also includes the “R-CoprManager” which is a tool translating “R wants to install plugin” to “dnf installs package with that name”.
When adding that COPR and installing the manager, you can install plugins normally from within R or RStudio and you will see dnf working in there.
The other Repo is newer and only for RStudio-Desktop, as that is now using Electron
The Rstudio wiki: Electron Desktop gives some context. I assume the change was driven by posit – electron is used by Microsoft, and is used by MS Edge and Code, so any breaking changes to Windows get fixed first in electron on Windows, while Qt has to wait to see what breaking changes occur in new Windows versions.
Depending on your needs, there are other GUI systems such as Jupyter App that support R.
I did dnf install R-CoprManager
and then started up R and then did install.packages("PerformanceAnalytics")
and it looked like the installation completed successfully but when I did library("PerformanceAnalytics")
R said there was no package matching that name. I did dnf history undo
to remove R-CoprManager and then did install.packages() the normal way and then everything worked fine; I could load the desired package using library().
Strange… @iucar any insights?
I would try reinstalling R-CoprManager again, because I rebuilt it to solve the issue above.
@boredsquirrel How do we know that IUCAR’s stuff doesn’t have malware? Recall in another thread (about Spotify) you said users generally shouldn’t install repackaged binaries.
The COPR build system is transparent. I dont trust Spotify, but I trust iucar lol