How to install R and R-Studio on immutable distros

Hi,
Has any one any experience with installing R and R-Studio on Silverblue?

At the moment I have installed it on a virtual machine (managed by Virtual Machine Manager). But it is not a reliable method in my opinion due to a loss of performance.

Any help would be appreciated!

A great way to use development environments on Fedora Atomic is via containers. Have you tried it?

You can have a look at Toolbx, which comes preinstalled on Fedora Silverblue.

Dear Mike,
Thanks for your reply.

I created a container for R and I install R and R-Studio in it.

Now, when I am trying to run R-Studio, I get the following error:

rstudio: error while loading shared libraries: "libnspr4.so" : cannot open shared object file: No such file or directory

I installed “libnspr4.so” manually, but it did not help. Any ideas ?

Try the following and plese keep in mind that I am not familiar with R programming, I just found it by a simple search:

Thank you very much for your reply. I made a huge mistake and did not install R first. Now I can run this app using the command line.

To be able to run it using the graphical interface of Gnome, I copied “rstudio.desktop” from the container to “~/.local/share/applications” folder. And I changed the content as follows:

[Desktop Entry]
Exec=toolbox run /usr/lib/rstudio/rstudio %F
Icon=rstudio
Type=Application
Terminal=false
Name=My RStudio
Categories=Development;IDE;
MimeType=text/x-r-source;text/x-r;text/x-R;text/x-r-doc;text/x-r-sweave;text/x-quarto-markdown;text/x-r-markdown;text/x-r-html;text/x-r-presentation;application/x-r-data;application/x-r-project;application/x-rdp-rsp;text/x-r-history;text/x-r-profile;text/x-tex;text/x-markdown;text/css;text/javascript;text/x-chdr;text/x-csrc;text/x-c++hdr;text/x-c++src;

But unfortunately, it does not run. Could you please mention what changes should be applied to this file, so that I can run it directly from the interface, and not opening terminal each time and run the app from there.

Thank you