Error: isTRUE(gpclibPermitStatus()) is not TRUE when using fortify function, rgdal package

前端 未结 2 916
情书的邮戳
情书的邮戳 2021-01-18 14:35

I am trying to work with spatial data that I downloaded here in order to make a map in ggplot2.

library(rgdal)
library(ggplot2)
library(rgeos)
df <- read         


        
2条回答
  •  不知归路
    2021-01-18 15:10

    I had the same problem, I had to install gpclib. I'm not sure if when you made the update it was removed from CRAN, but it's there now. It must be installed from source so you'll have to use the following code:

    install.packages("gpclib", type = "source")
    

    Note that to install with this code you'll need to have the appropriate version of Rtools installed.

提交回复
热议问题