I spent some time teaching coding at the undergraduate level (primarily in VBA and R). I used the following lessons to give an introduction to R:

I used the following tutorials to teach students how to conduct basic monte carlo simulation in R:

I’ve used the following tutorials to teach students how to conduct basic geospatial analysis and visualization in R: