MEDS Installation: MacOS

1. Install or update R

To install R, visit cloud.r-project.org to download the most recent version for your operating system. You should have at least version 4.3.1 (released 2023-06-16) running when you start MEDS.

2. Install or update RStudio

While R is a programming language, RStudio is a software (often referred to as an IDE, Integrated Development Environment) that provides R programmers with a neat, easy-to-use interface for coding in R. There are a number of IDEs out there, but RStudio is arguably the best and definitely most popular among R programmers.

Note: RStudio will not work without R installed, and you won’t particularly enjoy using R without having RStudio installed. Be sure to install both!

Image Credit: Manny Gimond | Accessible at https://mgimond.github.io/ES218/R_vs_RStudio.html

Figure 1: Image Credit: Manny Gimond | Accessible at https://mgimond.github.io/ES218/R_vs_RStudio.html

3. Install Quarto

Quarto is a scientific publishing tool built on Pandoc that allows R, Python, Julia, and ObservableJS users to create dynamic documents, websites, books and more.

Quarto is now included with RStudio v2022.07.1+ so no need for a separate download/install if you have the latest version of RStudio! You can find all releases (current, pre, and older releases) on the Quarto website download page, should you want/need to reference them.

4. Check for git

You should already have git on your device, but let’s check for it anyway.

which git

An aside: We’ll be using git a lot throughout MEDS. GitHub’s Git Guides are a really wonderful resource to refer to!

5. Create a GitHub account

6. Configure git

git config --global user.name "Jane Doe"
git config --global user.email janedoe@example.com
git config --list --global

IMPORTANT: If you’re configuring git on a Bren server (e.g. Taylor or Tsosie), you must also run the following in the Terminal:

git config --global credential.helper 'cache --timeout=10000000'

This prevents important credentials (e.g. a GitHub Personal Access Token, PAT, which you’ll set in step #7) from being removed from the server’s memory. You do not need to complete this step when configuring git on your local computer.

7. Store your GitHub personal access token (PAT)

First: What even is a personal access token? From GitHub’s documentation:

Personal access tokens (PATs) are an alternative to using passwords for authentication to GitHub when using the GitHub API or the command line.

This means that in order to push your work (files, scripts, etc.) from your laptop (or any other computer) to GitHub, you’ll need to first to generate a PAT. Importantly, you’ll need to generate a PAT for each computer you wish to work from. For example, we will complete the following steps to create a PAT for your personal laptop, but you’ll also need to create a PAT if/when you choose to work on any of the Bren servers. Good news is that you can follow these same steps when you’re ready to set up additional PATs on other machines. For now, let’s get a PAT for our personal laptop squared away:

install.packages(“usethis”)

A lot of scary looking red text will show up while this is installing - don’t panic. If you get to the end and see something like below (with no error) it’s installed successfully.

usethis::create_github_token() 

gitcreds::gitcreds_set()

This will prompt you to paste the PAT you just copied from GitHub. Paste the PAT, press Enter to run. You should see something like this show up if all is well so far (you’ll have pasted your PAT where mine says “REDACTED”):

usethis::git_sitrep()

Does it return information about your connected GitHub account that looks something like below? Great! You’ve configured git and successfully stored your PAT.

A note on expiring tokens: Setting an expiration date on personal access tokens is highly recommended in order to keep your information secure. GitHub will send you an email when it’s time to renew a token that’s about to expire. When it does, follow the same steps above to regenerate your token.

8. Install Anaconda

Follow the installation steps to complete Anaconda installation.

9. Install Cyberduck

Cyberduck is a program that allows you to browse files on a remote server. Download here.

10. Install UCSB’s Pulse Secure Campus VPN (Virtual Private Network)

For secure remote access to the UCSB’s campus network when you’re not physically present on campus, you’ll need to download and install the Pulse Secure VPN client. This will allow you to access UCSB’s technology resources (including servers, journal subscriptions, etc.) anytime and from anywhere.

See this Bren Zendesk article for directions on how to get started.

11. Create your Slack account and join MEDS

12. Access Google apps through your @ucsb.edu account

Once enrolled and your UCSBnetID is activated, you will have access to your UCSB Connect Account which provides email, calendaring, and collaboration services. You must use this account () to log in and access all of your Google Apps (including Google Calendar, Google Drive, etc.).

The MEDS Google Calendar contains all classes and events relevant for our MEDS students. Feel free to add this to your calendar if you find it helpful. To do so, log in to Google Calendar using your @ucsb.edu credentials > Click on the + next to “Other calendars” on the left-hand side of your screen and choose “Browse resources” > Click the drop down arrow next to “bren” and check the box next to “bren-calendar-meds”

End MEDS Installation Guide