Skip to content
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

post/installing-r-on-android-via-termux/ #1

Open
utterances-bot opened this issue Oct 10, 2020 · 16 comments
Open

post/installing-r-on-android-via-termux/ #1

utterances-bot opened this issue Oct 10, 2020 · 16 comments

Comments

@utterances-bot
Copy link

Installing R on Android via Termux | Conor I. Anderson

Get a full IDE experience in R on Android.

https://conr.ca/post/installing-r-on-android-via-termux/

Copy link
Owner

ConorIA commented Oct 10, 2020

I've recently changed from Disqus to Utterances. Sorry, but old comments from this post are gone.

Copy link

E: Unable to locate package r-base
E: Unable to locate package gcc-9
E: Unable to locate package libgfortran3

@ConorIA
Copy link
Owner

ConorIA commented Oct 23, 2020

Sounds like you're missing the pointless repo. See the first code block or try https://its-pointless.github.io/setup-pointless-repo.sh

Copy link

Just a heads-up for folks that while termux is still on the google play store, the addons are no longer supported for installs from there. They recommend you install from f-droid now. Also, I suggest folks first install openssh so they can remote into their device to run all the commands (I painstakingly typed all the commands before thinking of that :P)

Copy link

Oh, and best to install tidyverse via pkg install r-cran-tidyverse

Copy link

What solved all the termux issues by doing termux-change-repo and then pkg upgrade. Then you need to switch back to the default repo for the rest.

Copy link

It works! Bless you mate!!

Copy link

ghost commented Oct 1, 2021

Can confirm, works as of 2021-10-01 after running apt upgrade before installing the packages. Thank you so much.

Copy link

Also run apt-get update after running the first code block. I kept getting an error saying it couldn't locate r-base. After running apt-get update it worked.

Copy link

ghost commented Nov 17, 2021

Did work for me before, but currently doesn't given the release of libicu 70.1

@ConorIA
Copy link
Owner

ConorIA commented Nov 17, 2021

Yes the version of R on the pointless repo was compiled with an earlier version, so the only solution is to re-compile R, or wait for a new version to hit the repos. Related issue: its-pointless/gcc_termux#137

@NaturallyAsh
Copy link

Haven't tried it yet but the below method is confirmed to be working.
its-pointless/gcc_termux#135 (comment)

Copy link

ghost commented Nov 19, 2021

@ConorIA @NaturallyAsh Thank you so much. I did get it working on AnLinux and am still waiting on the new version Conor speaks of. Tried NaturallyAsh's suggestion but it failed to compile on my particular setup. Thanks again anyway.

Copy link

$ R
CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/lib/R/bin/exec/R": library "libicuuc.so.69" not found
Aborted

How can I solve that

@ConorIA
Copy link
Owner

ConorIA commented Mar 9, 2023

$ R CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/lib/R/bin/exec/R": library "libicuuc.so.69" not found Aborted

There is a library version mismatch. It looks like this was reported back in 2021 (see: its-pointless/gcc_termux#137).

In 2021, I commented that I expected a new version of the R package would be published, but it seems like that didn't happen (maybe @its-pointless has abandoned the project?). Other commenters seem to have had success compiling R from source: its-pointless/gcc_termux#135 (comment)

As noted in my blog, you could also use something like AnLinux to install a different Linux distro in termux and use that distro's native R package.

Copy link

@mike-lawrence
Pretty sure Moses forgot to mention the 11th commandment which states that on every niche R page I find myself on, there will be a post by you from roughly two years prior. It's starting to get kinda weird.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants