Install the rgdal and sp packages. At the time of writing, installing rgdal on macOS X is tricky. Binary packages are unavailable and different versions of the OS require us to do different things. You will need to research this on the web and get it installed.
Copy the following files to your R working directory:
We obtained these files from http://www.naturalearthdata.com/.