此问题可能与之前未回答的问题重复。我仍然有问题。
我正在尝试使用邮政编码 shapefile 并出现以下错误:
tract <- readOGR(dsn = ".", layer = "cb_2013_us_zcta510_500k")
tract<-fortify(tract, region="GEOID10")
Error: isTRUE(gpclibPermitStatus()) is not TRUE
我曾尝试安装 gpclib 来解决此问题,但随后出现以下错误:
install.packages("gpclib")
Installing package into ‘C:/Users/Nick/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘gpclib’
These will not be installed
帮助?