Watts-College / paf-513-template

https://watts-college.github.io/paf-513-template/
MIT License
0 stars 0 forks source link

Lab -02 | rgdal package unavailable? #3

Open swest235 opened 7 months ago

swest235 commented 7 months ago

@JasonSills I'm attempting to download the needed packages for lab 2 and the "rgdal" package seems to have been removed from the repository. See link: https://cran.r-project.org/web/packages/rgdal/index.html

The link above references using "sf" or "terra" instead, is that the route to go?

image

image

JasonSills commented 7 months ago

@swest235 , it looks like rgdal is no longer in use. I have a workaround I would like for you to try. Download the lab file. In R, go to "File" and Save As somewhere on your machine before knitting. Now change out the library(rgdal) with library(sf). I have provided the new code chunk below. Make sure you have sp, sf, and geojsonio installed. Now knit and you should have a document that you can turn in. I'll walk through this method in the live section as well.

New code chunk:


library(sp)
library(sf)
library(geojsonio)                            # Load required libraries