I loved using termux to run bits of my R code in it. With git and my text editor/IDE, it actually felt pretty good.

Sadly I can't seem to get R to work on it these days.

There's a fork of Termux that uses Nix for package management on F-Droid, and the R environment on it seems to work fine. Just tested it by booting up the REPL.

https://github.com/t184256/nix-on-droid