Skip to main content
SAGE
Search form
  • 00:01

    MATT DENNY: Hi, everyone.This is your instructor, Matt Denny,and welcome to this lecture on installing R on Linux.So if you're running Linux on your computer,I'm generally going to assume that you probablyknow what you're doing.I'm also going to assume that you knowhow to use the command line.So whereas the videos for installing R on a Mac

  • 00:24

    MATT DENNY [continued]: or on Windows will feature graphical user interfaceinstallers-- they're sort of easy little programs youdownload off the R website--if you're using R on a Linux machine,you're going to have to use the command line to get it.Although, I think Ubuntu might have R.If you look for R base in the Ubuntu store thing,

  • 00:49

    MATT DENNY [continued]: you'll be able to get it that way.And if you have some other flavor of Linux,there are some directions on the CRAN web page.I will take you there.But in general, your distro may actually alsocome with R already.If you open up a command line and type in R,you may find that you just already have R installed.So I'm just going to quickly go through this

  • 01:09

    MATT DENNY [continued]: in case you have Linux and don't know how to install R justto make sure that we're all on the same page.OK, so I'm going to head over to my desktop,and I'll see you in a second.OK, so I'm recording this on a Mac,but the things you're going to need to doare actually pretty similar.So if you open up a web browser, you can either follow the link

  • 01:30

    MATT DENNY [continued]: that I provided right above this video,or you can type in C-R-A-N into Google.And what that will take you to is the Comprehensive R ArchiveNetwork, which is the place where R lives.So it's sort of the place where you

  • 01:52

    MATT DENNY [continued]: get the latest and greatest version of R. It'sthe place where all the news about R comes out,and it's also the place where allof the user-created add-on content, add-on packages for R,that's where they live.It's sort of the official R website.And so right up at the top we're goingto see this Download and Install R pane.And it's going to have an option to download R for Linux.

  • 02:13

    MATT DENNY [continued]: There's also other useful things on this site.So there's the R Journal over here on the left.There's also information about packagesand there are manuals and FAQs which are also very useful.But we're going to click on Download R for Linux.And then it will give you options here--so if you have a Debian-, Red Hat-, SUSE-,or Ubuntu-based build.

  • 02:33

    MATT DENNY [continued]: And then a-- ooh, this is new.So that'll give you a nice little installation guide here.So in general, on Ubuntu, its you just sudo apt-get updateand then sudo apt-get install R base.And that's all you're going to need to do.If you have a different operating system,

  • 02:54

    MATT DENNY [continued]: you might have different instructions.So let's see, under Red Hat, you'regoing to need to use sudo yum installR. There are different commands for different flavors of Linux.I'm going to assume that you knowhow to use whatever your package manager is on your computer.

  • 03:19

    MATT DENNY [continued]: Alternatively, you can also just checkto see if you already have R installedby just typing in R onto your command lineand seeing if it starts up for you.So again, this is a super-quick tutorial justto make sure that you know where to go.Again, the CRAN website is usefulbecause it will give you instructionsfor installing it under whatever flavor of Linux you're running.

  • 03:39

    MATT DENNY [continued]: But you can also, again, just check, open up a terminaland see if R is installed that way.So thanks very much for watching,and I will see you in the next video.

Video Info

Series Name: Practical Data Management with R

Episode: 3

Publisher: SAGE Publications Ltd

Publication Year: 2017

Video Type:Tutorial

Methods: Data management, RStudio, R statistical package, Programming

Keywords: computer programming; computer programs; computer software selection; Linux; programming languages

Segment Info

Segment Num.: 1

Persons Discussed:

Events Discussed:

Keywords:

Abstract

Matt Denny explains how to install R on Linux, first checking whether it is pre-installed, then off to the R website to download and install the correct version.

Looks like you do not have access to this content.

Introduction to RStudio: Installing R on Linux

Matt Denny explains how to install R on Linux, first checking whether it is pre-installed, then off to the R website to download and install the correct version.

Copy and paste the following HTML into your website