The library name is geodata, it is on CRAN. You should be able to install it with install.packages("geodata").
The “mapslib” folder is a working folder on my computer where I stored data to avoid re-downloading files. You probably don’t have it, so you can use a custom folder as (some examples):
mydir <- "." # Data downloaded on your working folder, see getwd()