I wanted to plot sampling locations in the Northeastern United States using longitude and latitude and then overlay the state maps, maybe there is another way to do this?
Copied and pasted my console for installing the 'rworldmap' package in case that is helpful:
> install.packages("rworldmap")
also installing the dependencies ‘maptools’, ‘fields’
There are binary versions available but the source versions are later:
binary source needs_compilation
maptools 0.9-9 1.0-2 TRUE
fields 10.3 11.6 TRUE
Do you want to install from sources the packages which need compilation? (Yes/no/cancel) yes
Content type 'application/x-gzip' length 2925754 bytes (2.8 MB)
==================================================
downloaded 2.8 MB
The downloaded binary packages are in
/var/folders/66/ljhnzljd2b9dppr32th5vx_w0000gn/T//RtmpJPgbD8/downloaded_packages
installing the source packages ‘maptools’, ‘fields’
Content type 'application/x-gzip' length 1585377 bytes (1.5 MB)
==================================================
downloaded 1.5 MB
Content type 'application/x-gzip' length 3279148 bytes (3.1 MB)
==================================================
downloaded 3.1 MB
* installing *source* package ‘maptools’ ...
** package ‘maptools’ successfully unpacked and MD5 sums checked
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘maptools’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/maptools’
Warning in install.packages :
installation of package ‘maptools’ had non-zero exit status
* installing *source* package ‘fields’ ...
** package ‘fields’ successfully unpacked and MD5 sums checked
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘fields’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/fields’
Warning in install.packages :
installation of package ‘fields’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/66/ljhnzljd2b9dppr32th5vx_w0000gn/T/RtmpJPgbD8/downloaded_packages’