Visit https://ropenspain.github.io/mapSpain/articles/working_imagery.html to learn how to download imagery of Spain.
Note that you may need several additional packages. Install them by running:
install.packages("mapSpain", dependencies = TRUE)