Here’s the textbook I use for my classes in R and Python (used to be R and SAS, and I couldn’t just drop SAS without adding something else, so now I teach students both). Hoping it’s helpful to anyone who is trying to learn R.