When I install the package "maps", there's a warning in the installation:
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (x86_64): /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd
Undefined symbols for architecture x86_64:
"___sprintf_chk", referenced from:
_to_ascii in Gmake-02a515.o
"___stack_chk_fail", referenced from:
_to_ascii in Gmake-02a515.o
....
"_strlen", referenced from:
_to_ascii in Gmake-02a515.o
ld: symbol(s) not found for architecture x86_64
clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [<builtin>: Gmake] Error 1
make[1]: Leaving directory '/private/var/folders/l4/tmczrb0d7259bm_cqcy02y9w0000gn/T/Rtmpnbfu8d/R.INSTALLa802101e8d4/maps/src'
make: *** [Makefile:58: gmake] Error 2
ERROR: compilation failed for package ‘maps’
* removing ‘/anaconda3/lib/R/library/maps’
Warning in install.packages :
installation of package ‘maps’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/l4/tmczrb0d7259bm_cqcy02y9w0000gn/T/RtmpISL1l9/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
And when I run
library(maps)
it gives the following error:
Error in library(maps) : there is no package called ‘maps’