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

前端 未结 2 917
情书的邮戳
情书的邮戳 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.

    0 讨论(0)
  • 2021-01-18 15:26

    I had this issue after upgrading R. I reinstalled rgdal and all was good.

    0 讨论(0)
提交回复
热议问题