are there any chances to get R (see https://r-project.org) under endless os?
I had asked the support directly almost in parallel to this forum post, so I summarize my discussion with the support here:
Abner Chay (Endless), Feb 14, 09:19 PST
We are very sorry about this situation.
We will need to wait for a volunteer that would be able to develop the app for a Flatpak platform.
Abner & Endless Team
Bernhard, Feb 8, 07:05 PST
to talk to the R developers about making a flatpak.
I did this already, but the answer was a bit disappointing see:
Abner Chay (Endless), Feb 2, 10:58 PST
Thanks for contacting us, you might be able to download the R binary files from r-project.org and run them from your home directory, but the best long-term solution is to talk to the R developers about making a flatpak.
Abner & Endless Team
Bernhard, Jan 2, 01:12 PST
I am interested in using R (see http://r-project.org) under endless OS. Are there any chances for getting a R flatpak for it?
yet another update: apparently Alexander Wilms has created a RStudio.json file for creating a RStudio flatpak, see: https://github.com/rstudio/rstudio/pull/1921 but I am unable to use it.
My problems may be due to missing knowledge about github and pull requests and/or maintaining source on github and/or creating flatpaks with flatpak-builder.
So I would be glad if some brave soul could help me a little bit.
I’m trying to make RStudio flatpak based on those pull request on https://github.com/cho2/com.rstudio.RStudio, but i got an error when run
trying again and no space left on device
You should try another method to install R like @wjt suggest on https://community.endlessos.com/t/r-package-install-method/5826/2
I’ve pushed an updated version of the manifest here: https://github.com/Alexander-Wilms/flathub/tree/rstudio
The development version of RStudio now uses Qt WebEngine, which is already contained in the Sdk, that might fix your memory-related issue. If that doesn’t help, I can upload the .flatpak bundle somewhere.
thanks a lot for providing the flatpak, I’ll give it a try.
just a curious question: Is the basic R Installation as mentioned here http://web.cs.ucla.edu/~gulzar/rstudio/index.html required before I can use RStudio or is it included in the flatpak?
I don’t know much about R, so all I can say is that I’m building R without any special options an some of the packages listed in the RStudio GUI are already ticked. Also, I installed
readxl and that seemed to work fine.
thanks. I am also a R-newbie and a newbie to endless/flatpack etc.
I did a
flatpak install --bundle RStudio.flatpak and after some prompts for my password it finished installation. Since I did not have a RStudio in my path, I experimented a bit and finally arrived at the following command for starting RStudio:
flatpak run com.rstudio.RStudio
As far as I can see, RStudio works as I would expect it, although I get some error messages in the terminal window, where I started it
Gtk-Message: Failed to load module “canberra-gtk-module”
Gtk-Message: Failed to load module “canberra-gtk-module”
libGL error: failed to open drm device: No such file or directory
libGL error: failed to load driver: i965
Qt: Session management error: None of the authentication protocols specified are supported
[3:3:0308/194148.773589:INFO:zygote_host_impl_linux.cc(107)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.
[3:36:0308/204558.970170:ERROR:address_tracker_linux.cc(174)] Could not bind NETLINK socket: Address already in use
libpng warning: iCCP: known incorrect sRGB profile
[3:43:0308/204645.154241:ERROR:object_proxy.cc(573)] Failed to call method: org.gnome.SessionManager.Inhibit: object_path= /org/gnome/SessionManager: org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown
[3:43:0308/204645.154296:ERROR:power_save_blocker_x11.cc(338)] No response to Inhibit() request!
[3:43:0308/204700.490889:ERROR:object_proxy.cc(573)] Failed to call method: org.gnome.SessionManager.Uninhibit: object_path= /org/gnome/SessionManager: org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown
[3:43:0308/204700.490945:ERROR:power_save_blocker_x11.cc(410)] No response to Uninhibit() request!
[3:43:0308/204732.339166:ERROR:object_proxy.cc(573)] Failed to call method: org.gnome.SessionManager.Inhibit: object_path= /org/gnome/SessionManager: org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown
[3:43:0308/204732.339244:ERROR:power_save_blocker_x11.cc(338)] No response to Inhibit() request!
[3:43:0308/204752.332256:ERROR:object_proxy.cc(573)] Failed to call method: org.gnome.SessionManager.Uninhibit: object_path= /org/gnome/SessionManager: org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown
[3:43:0308/204752.332545:ERROR:power_save_blocker_x11.cc(410)] No response to Uninhibit() request!
[3:43:0308/204822.785046:ERROR:object_proxy.cc(573)] Failed to call method: org.gnome.SessionManager.Inhibit: object_path= /org/gnome/SessionManager: org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown
[3:43:0308/204822.785120:ERROR:power_save_blocker_x11.cc(338)] No response to Inhibit() request!
[3:43:0308/204842.761663:ERROR:object_proxy.cc(573)] Failed to call method: org.gnome.SessionManager.Uninhibit: object_path= /org/gnome/SessionManager: org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown
Can I ignore these messages savely?
Is there something I can include in the way I call RStudio (
flatpak run com.rstudio.RStudio) to avoid the DBus.Error messages?
I’ve added some fixes to the manifest. In the meantime, you can use
flatpak run --talk-name=org.gnome.SessionManager --device=dri com.rstudio.RStudio
thanks, when I call RStudio (from your flatpack at Google drive) with these parameters it looks much better.
thanks, but I still do not really know, how I can use the manifest.
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo flatpak install flathub io.qt.qtwebkit.BaseApp flatpak install flathub org.kde.Sdk 5.10 flatpak install flathub org.kde.Platform 5.10 flatpak install flathub org.freedesktop.Sdk.Extension.gfortran-62 flatpak install flathub org.freedesktop.Sdk.Extension.openjdk9 flatpak-builder --force-clean --ccache --repo=rstudio-repo rstudio-build com.rstudio.RStudio.json flatpak remote-add --no-gpg-verify rstudio-repo rstudio-repo flatpak install rstudio-repo com.rstudio.RStudio flatpak run com.rstudio.RStudio
thanks, do I need a dedicated build system for it or can this be done on Endless?
You only need to have the flatpak and flatpak-builder packages installed.
I’m slightly puzzled: I had to
sudo the five
flatpak install and the
flatpak-builder commands. Is this correct?
flatpak-builder doesn’t need root access. All the other commands should work with the --user flag.
Just curious: In my understanding such a manifest should allow flathub to build a RStudio flatpak automagically.
Does anybody know how to trigger that?
GNU Octave made it apparently, are there any reasons why this does not work out for RStudio in a similar manner?
In the meantime I asked flathub admins about automated build of RStudio at fathub and got the answer that this should be triggered by Alexander-Wilms with a pull request, see below, so dear Alexander, please go ahead.
Nick Richards wrote:
Someone needs to propose it! Alexander briefly pushed it and then closed the PR, so you’d have to ask him.
Obviously we’d prefer it if the upstream developers were involved. However, you can absolutely download that manifest and build the flatpak yourself on your local machine.
Since it is now four months later and nothing has happened, I start a new try to follow Nick Richards suggestion to get that manifest and build the R-Studio flatpak myself. I’d like to summarize what I did to successfully start the build of a flatpak for R-Studio, although I did not yet install and test it. The build system I am using is a recently installed Q4OS 64bit (Debian based distro with trinity desktop) on an obsolete Athlon 64 dualcore system equipped with a SSD. Q4OS comes default without developer tools installed, so I had to get these first (make, gcc,autotools-dev, default-jdk, openssh-server, and maybe some more which I do not remember). Then I had to enable the stretch-backports repo in aptitude, otherwise flatpak and flatpak-builder would be installed in outdated versions, which do not understand the yaml manifests provided by Alexander Wilms.
sudo apt-get -t stretch-backports install flatpak-builder
gets them in more recent versions (1.0.1 instead of 0.8.9). Then we need
sudo flatpak remote-add flathub https://flathub.org/repo/flathub.flatpakrepo
and (which I found out by trial and error when building RStudio) we have to create and install yet another flathub recipe beforehand, which is also provided by Alexander Wilms, texlive
git clone https://github.com/Alexander-Wilms/flathub.git
but there is no manifest for texlive since the different manifests are in seperate branches of that repo, so we have to
git checkout texlive
to get the manifest, create a working directory
and can build and install it:
flatpak-builder --install-deps-from=flathub --install --force-clean texlive \ org.freedesktop.Sdk.Extension.texlive
then we can switch branches to rstudio
git checkout rstudio
flatpak-builder --install-deps-from=flathub --install --force-clean \
--repo=../my-flathub R-Studio com.rstudio.RStudio.yaml
This is still running and I hope it will finish soon so I can check if it works, but in the moment I am confident.
Update after three weeks:
It somehow finished, but did not install itself, due to the fact that I forced a shutdown through the at demon some 8 hours after leaving the system. When I came back last Monday, I restarted the build process, which got through, asking twice for the root password during installation of the flatpak.
RStudio starts up without any problems.
Yet another update: I successfully created a single file bundle with the following command:
flatppak build-bundle my-flathub rstudio.flatpak com rstudio.RStudio
and this bundle installs and starts under endless.
You can download that bundle for a limited time from ftp://ftp.lrz.de/transfer/flathub/rstudio.flatpak and you are welcome to test it.