Installing R on N2

Post Reply
aull77
Posts: 2
Joined: Sun Jun 28, 2020 7:46 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 1 time
Been thanked: 0
Contact:

Installing R on N2

Post by aull77 » Sun Jun 28, 2020 8:00 pm

Has anyone been able to install any instance of R on 18.04LTS? R is described here https://cran.r-project.org/

Ideally I would like to install 4.0 but just getting the base has been challenging.

Followed the instructions here https://www.digitalocean.com/community/ ... untu-18-04

Tried installing 4.0 and when that failed (with a similar message) tried 3.6 but got this (similar) message:

The following packages have unmet dependencies:
r-base : Depends: r-base-core (>= 3.6.3-1bionic) but it is not going to be installed
Depends: r-recommended (= 3.6.3-1bionic) but it is not going to be installed
Recommends: r-base-html but it is not going to be installed
Recommends: r-doc-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Then tried repair/update but still no luck.

User avatar
odroid
Site Admin
Posts: 34562
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 809 times
Been thanked: 700 times
Contact:

Re: Installing R on N2

Post by odroid » Mon Jun 29, 2020 2:16 pm

Does it support ARM aarch64?
I have no experience of R though.

User avatar
meveric
Posts: 11080
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4
Has thanked: 42 times
Been thanked: 383 times
Contact:

Re: Installing R on N2

Post by meveric » Mon Jun 29, 2020 10:53 pm

If you followed the guide above you probably broke the support, as the repos in the cran.r-project page only support amd64 and i386.
But R is part of your linux distro already without any alteration:

Code: Select all

root@odroid-buster64:~# apt-cache policy r-base
r-base:
  Installed: (none)
  Candidate: 3.5.2-1
  Version table:
     3.5.2-1 500
        500 http://ftp.debian.org/debian buster/main arm64 Packages
root@odroid-buster64:~# apt-cache policy r-base-core
r-base-core:
  Installed: (none)
  Candidate: 3.5.2-1
  Version table:
     3.5.2-1 500
        500 http://ftp.debian.org/debian buster/main arm64 Packages
Same applies for Ubuntu 18.04:

Code: Select all

root@odroid-bionic64:/# apt-cache policy r-base
r-base:
  Installed: (none)
  Candidate: 3.4.4-1ubuntu1
  Version table:
     3.4.4-1ubuntu1 500
        500 http://ports.ubuntu.com bionic/universe arm64 Packages
root@odroid-bionic64:/# apt-cache policy r-base-core
r-base-core:
  Installed: (none)
  Candidate: 3.4.4-1ubuntu1
  Version table:
     3.4.4-1ubuntu1 500
        500 http://ports.ubuntu.com bionic/universe arm64 Packages
Please Note that in Ubuntu it's part of the "universe" repository not "main".

Also Ubuntu 18.04 only comes with R 3.4.4 and since the repo in your guide does not provide packages for ARM boards you can't install packages from their repository.
These users thanked the author meveric for the post (total 3):
aull77 (Tue Jun 30, 2020 8:53 pm) • joy (Tue Jun 30, 2020 10:34 pm) • odroid (Wed Jul 01, 2020 9:54 am)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

aull77
Posts: 2
Joined: Sun Jun 28, 2020 7:46 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Installing R on N2

Post by aull77 » Tue Jun 30, 2020 8:54 pm

Thanks - made sense. 3.4.4 installed. Working on the Shiny server now.

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 2 guests