-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package Request: R (r-base) #250
Comments
this would be great! |
I find one way to install R. |
Umm https://github.com/its-pointless/gcc_termux |
@its-pointless thanks for sharing this! Could you describe the installation process a bit more? I tried extractions the files and then modifying the executive files permissions, but I get an error that R can't load |
@namdnguyen follow the instructions in @its-pointless's readme instead, or look at the detailed steps isaacullah provided in this thread. With this, you can install it as a normal package with |
@Grimler91 Thank you for the quick reply! I was able to install
I've tried uninstalling and reinstalling |
I will fix it later today ... to compile R needs a more functioning libiconv to compile than is in libandroid-support |
wait if its asking for that lib that means the executable is the old version |
no wait its arm version that is the problem my mistake |
Thank you. I copied that to |
Oh im about deal with that. Its due to differences between devices since you kind of have to build this on device. A work around is to find a lib with that has that symbol |
Also if you haven't set TMP variable it will complain about not being able to create R_TempDir |
Oh ok, no rush. I really appreciate how incredibly responsive you've been. I will wait. I did try out the workaround you mentioned. I wasn't able to find any libs with mempcpy, but there were a lot with memcpy without the "p". |
@its-pointless just to confirm, R is working for me now after the latest update. Thank you so much for your contributions! I now have R and ledger on my phone. |
hi, @its-pointless, thanks for this. being able to run R on termux is fantastic. packages install r-cran the installation was really easy. unfortunately, when i try to launch R, i get this error message: CANNOT LINK EXECUTABLE: library "libicuuc.so.59" not found page record for 0x7f81152050 was not found (block_size=64) any ideas? thanks again. very useful work. with termux, it's getting to the point where i won't be bound to my laptop anymore. if i could only get R to work... :) |
apt install libicu should be enough i will add dependency |
f****** brilliant! it's working. just did a quick install of quantmod, quandl, etc in R. couldn't be happing. it's the latest version of R as well. i had been messing around with GNURoot Wheezy but this is far superior to anything else out there. if anyone is wondering how to get R working on android. follow these steps:
and you'll be good to go. thanks a lot for this, @its-pointless. this is definitely better than any of the other suggestions online. and i'm glad to see people contributing to termux development, it's a game-changer |
I'm having trouble installing the Rcpp package. I get this error message.
Does anyone have any tips or ideas? |
Android isn;t defined as an option but its easy to add |
just another update for anyone who's having issues with R on termux. there are a lot of additional packages you need to install within termux itself, make sure you do packages install clang amongst others (cant remember all of them). then, when you're in R itself, and you try to install quantmod (for instance) install.packages('quantmod') you'll get an error message that the gfortran command can't be found (even though you've installed libgfortran). in tht case, navigate to the /usr/bin directory and run this command cp gfortran-6 gfortran i have no idea if you're meant to do tht (??) but making a copy of this file with a title tht R recognises worked for me! i can pull financial data through quantmod and quandl and plot it inside a pdf. very happy. now i just have to figure out the equivalent of 'gnome-open' in termux, so tht i can open pdfs directly from the terminal... |
yeah i probably should of added more documentation. Second point because clang is the default and gcc was removed i setup a script called setupclang and setupgcc-6 to switch between those 2 compilers. It also switches aarch64-linux-android-clang to be a symlink to gcc because of the way python configuration is set linking is sometimes done with aarch64-linux-android-clang not just just $CC. I should probably document it more but i honestly thought no one is going to use it but me so i stopped caring... |
i'll use it! most definitely. i couldn't be happier right now. i just think a lot of people aren't aware tht this exists yet. all the various dependencies aside, getting R on android now basically comes down to installing termux and running one command. |
Yes, I will second what @wickx said. It's been so helpful for me to have R available on my phone. I'm currently working on getting the tidyverse packages installed. Some of the packages installed (thanks to Rcpp and the gcc-6 compiler), but I think that others (such as |
Yeah issue with stringi is that it uses libicu-dev which needs cxxflags -std=c++11 to work if i remember correctly. Quickest solution is to use command setupgcc-6, build and install stringi then switch back to via setupclang . |
Also |
Hello, |
hey cptrodolfox, i'm going to use emacs in this example because tht's the text editor i use. feel free to use another. to install emacs, it's packages install emacs then, enter the following command to edit your sources.list file, this is the file tht determines what repositories you access when you do an install or update command emacs $PREFIX/etc/apt/sources.list once inside the file, move your cursor to the bottom of the file, and paste this line deb [trusted=yes] https://its-pointless.github.io/files/ termux extras once you've done that, hit ctrl+x ctrl+s to save and then ctrl-x ctrl+c to exit emacs. after you've exited emacs, run these commands packages update and R should be installed. to launch R, just type the capitalised letter R on the command line and hit enter. you'll prolly encounter more issues inside R once you start using it. report back what they are and i should be able to help you, as i currently have R running pretty flawlessly. |
Hi wickx, |
apt install gcc-8 or 9 |
also |
also to switch to a specific compiler as default: |
Thanks. That worked.
lintr and igraph are now installed cleanly.
igraph compilation fails with setupgcc-8 with the patch installed.
Setting clang to the default works for compilation of the above packages.
|
I still can't get Rscript, the command, to work as expected. It does
nothing without or with a script as parameter. Is this broken? Do I need to
reinstall R?
|
Rscript |
so no output at all with the command Rscript? |
Not on Termux.
I'm running the scripts via:
R CMD BATCH --slave {script}
Stackoverflow says that's not the preferred method of running scripts any
more.
https://stackoverflow.com/questions/21969145/why-or-when-is-rscript-or-littler-better-than-r-cmd-batch
|
Rscript appears to be an ELF executable. If its not working, Termux could simply wrap the above in a script and output the .Rout file to stdout. That's how ecj is defined on Termux, anyway. |
Am I missing something? I haven't the time to troubleshoot this issue myself. R works fine on Arch Linux (Termux) for me and I'm just getting started with the R environment. |
Rscript works for me... |
It doesn't for me and it never has. termux-info Updatable packages: |
Use https://its-pointless.github.io/files/24 for apt url. |
Is this to be updated in |
Reading package lists... Done
E: The repository 'https://its-pointless.github.io/files/24 stable Release'
does not have a Release file.
I updated the sources.list with the above url but have the above error.
…On Fri, 30 Aug 2019, 02:24 its-pointless, ***@***.***> wrote:
Use https://its-pointless.github.io/files/24 for apt url.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#250?email_source=notifications&email_token=AF4R3PIGKROAS5PTKIFRQKTQHAZRNA5CNFSM4CC4LLCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5PZGPI#issuecomment-526357309>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF4R3PJJKCPTVXWOR35QW6LQHAZRNANCNFSM4CC4LLCA>
.
|
The correct sources.list line should be:
as repository doesn't have deb distribution "stable". |
So should I retain the original line and append this?
…On Sat, 31 Aug 2019, 16:46 Leonid Plyushch, ***@***.***> wrote:
E: The repository 'https://its-pointless.github.io/files/24 stable
Release'
The correct sources.list line should be:
deb https://its-pointless.github.io/files/24 termux extras
as repository doesn't have deb distribution "stable".
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#250?email_source=notifications&email_token=AF4R3PIIRX6EGTTHNURPMWLQHJHIPA5CNFSM4CC4LLCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5TKXDY#issuecomment-526822287>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF4R3PMIIRB2SULBHQYWKYTQHJHIPANCNFSM4CC4LLCA>
.
|
Remove all existing occurrences of https://its-pointless.github.io and put line posted above. |
Adding the line works. But Rscript still doesn't.
|
There was only one line in the original file.
# The main termux repository:
deb https://dl.bintray.com/termux/termux-packages-24 stable main
…On Sat, 31 Aug 2019, 19:55 Leonid Plyushch, ***@***.***> wrote:
Remove all existing occurrences of https://its-pointless.github.io and
put line posted above.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#250?email_source=notifications&email_token=AF4R3PKVSW5PJTBXTCVP2DLQHJ5OPA5CNFSM4CC4LLCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5TNXNA#issuecomment-526834612>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF4R3PP5HYPXKNLVUO34OKLQHJ5OPANCNFSM4CC4LLCA>
.
|
Ok. What content of file |
OK. What's supposed to happen? A whole set of packages including R-base, Julia and scipy were downloaded earlier by changing the sources.list file. Updating the pointless.list produces a duplicate configuration error. So I reverted the sources.list to the original one and tried a pkg up. No new packages are downloaded. Rscript is the same. |
Remove the its-pointless repo from original sources.list and update the line in pointless.list. So what should happen:
|
Thanks for all the help. Rscript is still the same on Termux. |
Why not? __ |
it seems as if this briefly worked via the its pointless repo but currently doesn't work as the versions of R available in termux requires older versions of packages which are no longer available. |
Doesn't seem to work anymore.
|
@wickx I know this was a while back, but I've only just stumbled onto this thread. You can use I had to follow the note at the bottom of that page and add |
Several users of GnuRoot Debian reported that R works on arm. Currently there is no other way to run R on Android.
The text was updated successfully, but these errors were encountered: