[R-sig-Debian] Outdated r-base-core when installing on Ubuntu 14.04
Dirk Eddelbuettel
edd at debian.org
Tue Mar 22 11:16:05 CET 2016
On 21 March 2016 at 16:37, Matthew Simpson wrote:
| On Ubuntu 14.04 the following commands worked to install R 3.0.2 (after adding
| Rutter's PPA):
|
| sudo apt-get install r-base-core
| sudo apt-get install r-recommended=3.0.2-1ubuntu1
| sudo apt-get install r-base=3.0.2-1ubuntu1
|
| For anyone else trying to run R on a linux distro through Crouton on a
| Chromebook: there is a catch for ubuntu - when installing packages in R, the
| usual window that pops up asking which R mirror you want doesn't work. Instead,
| it throws an error - probably related to whatever Crouton is doing under the
| hood. You can manually specify the mirror with install.packages(pkgname, repos
| = 'cran mirror') of course, but that's annoying and there is no such problem
| with Debian, so Debian > Ubuntu in this case.
You can set this in ~/.Rprofile or /etc/R/Rprofile.site:
local({
r <- getOption("repos")
r["CRAN"] <- "https://cran.rstudio.com"
options(repos = r)
})
( I tend to also set additional drat repositories so I also have
r["eddelbuettel"] <- "https://eddelbuettel.github.io/drat"
r["ghrr"] <- "https://ghrr.github.io/drat"
in there but that is options. )
But having CRAN preset makes the question go away.
Dirk
|
| Matt
|
| On Mon, Mar 21, 2016 at 4:20 PM, Matthew Simpson <themattsimpson at gmail.com>
| wrote:
|
| Ok, first I poked around the ubuntu tablet and related PPAs to see if I
| could find one with an ARM port of R, but no luck. Next I tried a debian
| install - jessie is supported on Crouton and it installs and runs basically
| without a hitch. But I run into the same problem installing R - using only
| a cran debian source and none of Rutter's PPAs. Now r-base-core is only
| available up to 3.1.1-1. Attempting sudo apt-get install r-base=3.1.1-1
| yields a complaint from apt that r-recommended 3.1.1-1 is needed but won't
| be installed, though sudo apt-cache showpdg r-recommended shows 3.1.1-1 as
| available.
|
| This left me basically where I was with ubuntu, but I tried something here
| that I didn't try there - I manually tried to install r-recommended
| 3.1.1-1. It complained about a dependency, so I manually tried installing
| the right version of the dependency, which complained about a dependency,
| etc, until I got something to install. Through this process here are the
| things I installed, I believe in this order:
|
| sudo apt-get install r-base-core=3.1.1-1
| sudo apt-get install r-cran-boot=1.3-13-1
| sudo apt-get install r-cran-codetools=0.2-9-1
| sudo apt-get install r-recommended=3.1.1-1
| sudo apt-get install r-base=3.1.1-1
|
| This got R installed correctly. While it's still not the most updated
| version, it's a version I can probably live with considering this isn't my
| main machine.
|
| I'm going to try the same thing on the ubuntu install to see if I can get R
| 3.0.2 installed there - r-recommended 3.0.2 was available, so perhaps
| manually installing the correct dependencies in order will get the job
| done. I'll report back to say whether this worked either way.
|
| Thanks for the help,
| Matt
|
| On Mon, Mar 21, 2016 at 1:48 PM, Johannes Ranke <jranke at uni-bremen.de>
| wrote:
|
|
| Am Montag, 21. März 2016, 13:31:44 schrieb Dirk Eddelbuettel:
| > On 21 March 2016 at 13:18, Matthew Simpson wrote:
| > | It may be significant that my chromebook has an ARM processor. I
| don't
| > | know
| > | about the details of how this works, but perhaps some pieces of the
| R
| > | install haven't been ported to the appropriate architecture?
| >
| > Bahh. I am clearly not awake. Should have realized that.
|
| Neither was I.
|
| >
| > That is why you had r-doc-html, r-recommended, ... etc which are
| binary=all.
| > On CRAN you will /only/ find i386 and amd64. On the Ubuntu PPAs you
| /may/
| > find arm builds as Ubuntu supports them for their tablet plans etc
| pp.
|
| I am providing arm binaries for Debian wheezy and Debian jessie on
| CRAN, maybe
| this would be an option?
|
| Cheers, Johannes
|
| >
| > As such, the Dockerfile I sent you is more relevant than the CRAN
| README.
| >
| > Good luck, Dirk
|
|
|
|
|
--
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
More information about the R-SIG-Debian
mailing list