R Links
I built this page to point students (and anyone else learning R) to resources I’ve found helpful in my R journey. Use whatever information you’d like, but only for good. And give Stanley a virtual pat on the head before you go.
Getting Started with R
Start by downloading the R software environment:
Next download one of two IDEs, both developed by Posit:
- Positron
- A general IDE that supports R, but also Python and Julia
- Just came out of beta, but is mostly stable and has modern features absent from RStudio
- If you have experience in VSCode, I recommend Positron
- RStudio
- The classic IDE for R, and still the most popular
- Straightforward, easier to navigate, and very stable
- If you have no experience with IDEs, I recommend RStudio
After installing R and an IDE, you can start learning R. Here are some resources to get you started:
- Starter links from posit
- Recommended resources for learning R
- Package Cheatsheets from posit
- Cheatsheets for a variety of offerings from Posit
Data Science in R
Working with LLMs in R
Working with Large Language Models in R requires using an API from the LLM provider. This typically requires creating an account separate from your chat account, generating an API key, and adding it to your R environment. See here for more information.
See this blog post for a collection of LLM-related packages. Here are some specific features and packages I’ve found useful:
Web Crawling & Scraping in R
GIS
- “Geocomputation with R” by Lovelace, Nowosad, & Muenchow
- Atlas of Historical County Boundaries (US)
- Shapefiles for historical county (1629-2000) and state/territory (1783-2000) boundaries. Tracks all boundary changes over time.
- IPUMS NHGIS (US)
- Shapefiles for historical boundaries in census years from 1790-Present. Does not track all changes, only shows boundaries as they existed in census years.
- Eurostat (From the EU)
- Shapefiles for modern Europe