Welcome! There’s a few things we’d like everyone to try and get sorted out before our first class.
Our goal is for you to learn how to use these tools so you can get stuff done. You can learn to be an expert later. Mainly, we’d like you know that computer programming or coding doesn’t have to make you feel like this:
Install
git
& register for a free github account with your
.edu
email address
Install current R on your laptop
Install current RStudio on your laptop
Make sure you have a spreadsheet program installed on your computer (Microsoft Office, Libre Office, etc.)
Read below for more detailed information on installing the pieces of software we’ll need, and platform specific instructions.
Git
& Github AccountMuch of the instruction below is from a great website set up by Jenny Bryan, called happygitwithr.com.
Register for a free
individual GitHub account with your
“@ucdavis.edu
” email, and request the Student Developer
Pack. This will give you unlimited private repositories, among other
goodies. Do this ASAP! I think a human vets these requests, so don’t
delay making this request. Think a little bit about your username and
public profile, I suggest you use a real name and begin to build a
scholarly identity in social media and coding, but it’s your
decision.
Tell us your GitHub username using this Google Form, so we can add you to the class Github Organization, ucd-cepb (which is basically our own github “classroom”). We will set up a private repository for each student. So you just need the free individual account (i.e. we don’t have to wait for your Student Developer Pack to get approved).
Please look for an invitation to join the UCD-CEPB Organization in your email. Once that’s all done, we can create and add a private repository that belongs only to you. Other students can see this repo, but they cannot edit it. The rest of the world cannot see it, only our class.
Setup git on
your computer. The ~ is a shortcut, and it means
your home directory (i.e., ~ =
/Users/myname
on a Mac, ~ =
C:/myname/Documents
on a PC).
🔩 More about repositories and clones: The
repository is a version controlled-project where the
master
copy lives online on Github. All your changes will
get committed and pushed up to that repository. A clone
is your local
copy of the repository (on your computer).
You can do whatever you want to your local
copy, making
changes/edits, adding files, etc. and push
those changes
back to the master
repository on github. The cool thing is
you can completely delete your local
copy (assuming you’ve
already committed/pushed any changes that were important), and the
master
will still persist on github, including a record of
all the changes you’ve made.
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.To interact with spreadsheets, we can use LibreOffice, Microsoft Excel, Gnumeric, OpenOffice.org, or other programs. Commands may differ a bit between programs, but general ideas for thinking about spreadsheets are the same.
If you don’t have a spreadsheet program already, you can use LibreOffice. It’s a free, open source spreadsheet program. Alternatively, as a UC Davis student, you are eligible for a free copy of Microsoft Office 365. See here for instructions, make sure to login with your UC Davis email address.
These setup instructions are adapted from those written for Data Carpentry: R for Data Analysis and Visualization of Ecological Data and Data Carpentry: Data Organization in Spreadsheets, and from Jenny Bryan’s happygitwithr.com website.