Read below for more detailed information on installing the pieces of software we’ll need, and platform specific instructions.
R and RStudio are separate
downloads and installations. R is the underlying
statistical computing environment. RStudio is a
graphical integrated development environment (IDE) that makes using R
much easier and more interactive. You need to install R
before you install RStudio. Download and install both
of these but in this order:
R: Get the most current version version appropriate for your machine. It’s free.
RStudio is a great platform to work with R (note you need R before you can use RStudio). Please install the most recent version. It’s free. It does lots of cool things. We’ll talk more about it in class.
R
and RStudio
installedRStudio
, and click on Help > Check
for updates. If a new version is available, quit
RStudio
, and download the latest version for
RStudio
.R
you are using, start
RStudio
and the first thing that appears in the console
indicates the version of R
you are running. Alternatively,
you can type sessionInfo()
, which will also display which
version of R
you are running. Go on the CRAN website and
check whether a more recent version is available. If so, please download
and install it. You can check
here for more information on how to remove old versions from your
system if you wish to do so.R
and RStudio
installedR
from the CRAN
website..exe
file that was just downloadedRStudio
to make sure it works
and you don’t get any error messages.RStudio
, and click on “Help” > “Check for
updates”. If a new version is available, quit RStudio
, and
download the latest version for RStudio
.RStudio
and the first thing that appears on the terminal indicates the version
of R
you are running. Alternatively, you can type
sessionInfo()
, which will also display which version of
R
you are running. Go on the CRAN website and check
whether a more recent version is available. If so, please download and
install it.R
from the CRAN website..pkg
file for the latest R
versionR
RStudio
RStudio
to make sure it works
and you don’t get any error messages.R
for common
distributions. For most distributions, you could use your package
manager (e.g., for Debian/Ubuntu run
sudo apt-get install r-base
, and for Fedora
sudo yum install R
), but we don’t recommend this approach
as the versions provided by this are usually out of date. In any case,
make sure you have at least R 3.4.3
sudo dpkg -i rstudio-x.yy.zzz-amd64.deb
at
the terminal).RStudio
to make sure it works
and you don’t get any error messages.