[R-sig-Debian] Installing R in Ubuntu

Dirk Eddelbuettel
Thu, 17 Oct 2019 11:15:28 -0000

On 17 October 2019 at 16:34, Christofer Bogaso wrote:
| I have an Ubuntu server hosted in the cloud, but for security purpose,
| direct internet connection is blocked.
|
| So my question is under this scenario how can I install R in that machine?

It is an old, and solved problem. It has come up on StackOverflow a few times
before as well.  Here is a (nearly) ten-year old answer of mine:

https://stackoverflow.com/questions/4419268/how-do-i-download-a-package-from-apt-get-without-installing-it/4419282#4419282

You want one of those solutions -- and I am sure there are newer ones, so
maybe try searching on askubuntu.com as well -- as it will pull needed
dependencies in for you as well.

| I was wondering if I could have some .deb file available then I could
| scp that .deb file from my local computer (this has internet) to that
| Ubuntu server.
|
| But when I reached to
| https://cran.cnr.berkeley.edu/bin/linux/ubuntu/disco-cran35/, I failed
| to identify any deb file.
|
| Could you shed some light on this?

a) Don't use a per-institution server. The edge-of-cloud CDN ones are
generally as good or faster _irrespective of your location_ and hence better
for others.  So https://cloud.r-project.org is better

b) Copying and pasting from
http://cloud.r-project.org/bin/linux/ubuntu/disco-cran35/

      [....]
      r-base-core_3.6.1-3disco_amd64.deb              2019-07-26 13:54   24M
      r-base-core_3.6.1-3disco_i386.deb               2019-07-26 14:09   24M
      [....]

Dirk

--
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org