Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mapPlot function will produce error caused by gpclibPermitStatus() if lacking certain packages #13

Open
liuyanguu opened this issue Oct 28, 2019 · 2 comments
Assignees

Comments

@liuyanguu
Copy link

https://github.com/bryandmartin/SUMMER/blob/cd53e5d8d549434ea2b29cba9b0fbfa957fc8a98/R/mapPlot.R#L100

Error message: Error in maptools::unionSpatialPolygons: isTRUE(gpclibPermitStatus()) is not TRUE

Solved by installing gpclib from source according to this discussion

if (!require(gpclib)) install.packages("gpclib", type="source")

or maybe by just installing rgeos according to the same discussion.
Somehow it seems mapproj is also required somewhere in the mapPlot.

(Discoverd these when playing with packrat to pack the SUMMER app)
Great package,
Thank you. :)

@liuyanguu liuyanguu changed the title mapPlot function will produce error caused by gpclibPermitStatus() if certain non-imported packages are not installed mapPlot function will produce error caused by gpclibPermitStatus() if certain packages are not installed Oct 28, 2019
@liuyanguu liuyanguu changed the title mapPlot function will produce error caused by gpclibPermitStatus() if certain packages are not installed mapPlot function will produce error caused by gpclibPermitStatus() if lacking certain packages Oct 28, 2019
@richardli
Copy link
Owner

Thank you! I'll experiment if I can add rgeos in dependencies in the future update.

@liuyanguu
Copy link
Author

I might be wrong, but it seems I need to load both mapproj and gpclib. Just FYI.
On maptool's cran it says it "enhanced" gpclib. Not sure what that means.

@richardli richardli self-assigned this Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants