Skip to content

zay1996/geospaar

 
 

Repository files navigation

Geospatial Analysis with R

This is the repository for Clark University's Geospatial Analysis with R course (GEOG 246/346). The course materials are provided as an R package (geospaar), with the course material provided in the package vignettes.

Although these materials were designed for a course taught at Clark University, the two modules it provides may be useful to anyone interested in learning R programming and basic geospatial analysis.

This course draws from a number of other R courses and materials that are online (e.g. blogs, tweets, etc). We have tried to give credit to those materials wherever we draw on those. If you find that we have missed giving credit where it is due, please let us know by submitting an issue (ideally with blame assigned to the specific location) and we will remedy it forthwith.

Installation

1. Get the devtools package

If you have a Windows machine and don't already have Rtools installed, you will first need to download that and install it from here. Run the next lines below after that installs. (if you are on Mac or Linux, then skip Rtools).

install.packages("devtools")
library(devtools)

Add these ones as well, while you are at it:

install.packages(c("knitr", "kableExtra", "prettydoc"))

3. install the geospaar package

Note that the code below is a bit outdated, as the remotes package is the newer version for installs from remote repositories. However, the devtools version still works.

library(devtools)
install_github("agroimpacts/geospaar@fall2020", build_vignettes = TRUE)

4. Browse the course materials

browseVignettes("geospaar")

These materials are updated periodically, so check for updates.

For Clark students

Get a personal access token for GitHub, which is necessary for undertaking assignments (which will be on submitted on private repos).

  • Go into your GitHub account, and click settings, and then (on the left) developer settings
  • Select personal access tokens
  • Generate a new token, name it something meaningful, and check the "repo" box

  • Copy the token and paste it somewhere safe (e.g. a secure password manager)

About

Geospatial Analysis with R class repo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%