![]() ![]() Termux is " an Android terminal emulator and Linux environment app", a portable Linux distro running on Android (more or less). Also, it will not harm if you know what a compiler is (gcc), and if you realize that some R/python packages rely on compiled code (binaries) that typically resides somewhere else on the system. You will need some basic familiarity with linux commands ( cd, ls, chmod, ln.), and at least a basic idea of how packages are installed and managed in linux ( apt-get or pkg), in R ( install.packages() ) and in python ( pip install). rpm packages and need to go through a somewhat convoluted route.Īlso, it appears that R-studio cannot be installed without root privileges (either because it requires root itself, or because it relies on libraries that cannot be installed by a normal user).Īssuming you do not want to go the root route, you can still manage quite a few things. When compiling binaries, they must be compiled for this specific architecture.įor these reasons, you can not always use ordinary.You normally do not have root access to your device (unless it is rooted, which is another can of worms).IntroductionĪndroid is a linux in disguise, so in principle it is possible to install all or most linux apps. Now I know what to do, I'd probably manage in 1 or 2. Including trial and errors, the whole process took me some 5 hours. Sorry for any mistake or imprecise statement. This draws mostly from the present article as well as from How do I install Jupyter notebook on an Android device?, and links therein.Īlso, caveat reader: I'm not an expert in Linux, even less so on Android, and my understanding of Python is minimal. Long story short: I have a fully working R (complete with tidyverse) on my tablet, and I can access it from jupyter (which is not my first choice in general, but is probably appropriate for this platform and my use - I'm not planning to develop on Android, merely to try code snippets etc). Here is a summary of my experiments, as of October 2021. ![]() Step 6: Further customize with Nvim-R or whatever else you like Step 5: Launch R by typing an upper case R R Step 4: Configure your compiler setupclang-gfort-9 It might be wise to install each individually to monitor the warnings, I think some of these packages may be deprecated at this point in time. Mkdir -p "$PREFIX/etc/apt//"Įcho "deb termux extras" > "$PREFIX/etc/apt//pointless.list" Install from F-Droid Step 2: Add the its-pointless package repositoryĮnter the commands below one at a time: pkg install curl gnupg Step 1: Install Termux from F-Droid (or Google Play Store) follow this Installing R on Android via Termux guide from Conor Anderson's blog. Not exactly R Studio but still pretty cool. In a yoga book with android the answer didn't work. Notes:I also installed X11 in ubuntu, but didn't seem to improve the GUI experience of Rcmdr. Ggplot(diamonds) + geom_point(aes(x=carat, y=price, color=cut)) + geom_smooth(aes(x=carat, y=price, color=cut)) In VNC Viewer connect to 127.0.0.1:5901 which corresponds to the :1 display (showing the aterm in white), open R in aterm, then library(Rcmdr).Īfter ploting, see ggplot example, I had to write (blindly) dev.off() because there is no other way to return to the script window.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |