Visit https://ropenspain.github.io/mapSpain/articles/working_imagery.html to learn how to download and use static map tiles for Spain.
Note
You may need several additional packages. Install them by running:
install.packages("mapSpain", dependencies = TRUE)