‼️NOTE: The rgeoboundaries package is no longer available from CRAN. So you must install it with the code below before starting this lesson:
if (!requireNamespace("remotes", quietly = TRUE)) install.packages("remotes")
remotes::install_github("wmgeolab/rgeoboundaries", force = TRUE)
🚗 Video too fast or too slow? Click the gear icon ⚙️ at the bottom-right to change the speed!
Lesson code
Please download the zip folder below to code along with the instructor!
After downloading, unzip the folder, open the RStudio Project file within, then open the “VIDEO_CODE_ALONG” script and type along with the instructor in the video above!
Lesson notes
The written guide below is an accompaniment to the lesson video. You may read through it if you prefer written tutorials to video content.
Hallo, I need assistance.
I am unable to complete this code along as my rgeoboundaries package refused to load, I am receiving the error as indicated below.
# Load the rgeoboundaries package
> library(rgeoboundaries)
Error: package or namespace load failed for ‘rgeoboundaries’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
namespace ‘fastmap’ 1.1.1 is already loaded, but >= 1.2.0 is required
>
Hi Ester, this can happen when installing rgeoboundaries on a Windows machine with pacman::pl_load(). One potential solution is to remove it from pacman, and use install.packages(“rgeoboundaries”) instead.
I have the same problem and removing it from pacman does not help. Is there an other option to download the package manually?
Have you tried github? https://github.com/wmgeolab/rgeoboundaries
Go to code download the zip file then install manually through the “README.rmd” file