What about R in endless

RStudio flatpak runs at least on two quite different platforms (EndlessOS and Q4OS), see some test results at R Studio Community using R4DS as tutorial.

for instructions to add an icon for R-Studio, see my other post and the solution provided by LeandroStanger.