这个问题可能是之前未回答的一个问题的重复。我仍然有这个问题。
我正在尝试使用一个邮政编码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
需要帮助吗?
rgeos
吗?http://cran.r-project.org/web/packages/rgeos/index.html - rcsrgdal
,rgeos
和ggplot2
,重新启动R后就不应该再看到这个错误了。现在不再需要使用gpclib。 - Edzer Pebesma