![]() ![]() Which does the same thing but prints more verbose output to the console. You can also use the syntax R -e "rnorm(5)" Rscript -e "rnorm(5)" # five random numbersīe careful about matching quotation marks. You can run quick R one-liners without diving into a full R session, by using the following syntax. To quit R and return to the Linux command line, type q() Run commands and load and install packages to your heart’s content. This is just like the usual interactive R user interface (because it is the usual interface). You will know R is running because the start of the command prompt will change from a hash, #, to a greater-than sign, >. Starting an R session is as simple as typing R To install R, type the following commands in GNUroot Debian, hitting Enter after each line and waiting for the respective processes to finish. You can use it not only to run R on your phone, but also Python or any other command-line tools supported by GNU/Linux. You can work in multiple windows, and you have access to all the files on your Android system. GNUroot Debian emulates a command line interface or “X Terminal” like on a regular desktop PC. This application effectively gives you a full Linux environment within Android, without rooting your device. Install GNUroot Debian from the Google Play Store. ![]() This post was inspired by this answer on StackOverflow. Here I will show you how to do the same on your Android device. This is really handy for quickly checking R code, trying out ideas and writing blog posts on the go. I just discovered a way to get R running on my smartphone, with full support for packages, graphics and R Markdown, and no need to connect to an external server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |