powered by
Download a country's polygon shapefile from http://gadm.org
dnldCtryPoly(ctryCode = NULL, gadmVersion = pkgOptions("gadmVersion"), custPolyPath = NULL, downloadMethod = pkgOptions("downloadMethod"))
The ISO3 ctryCode of the country polygon to download
The GADM version to use
Alternative to GADM. A path to a custom shapefile zip
The method used to download polygons
TRUE/FALSE Success/Failure of the download
# NOT RUN { Rnightlights:::dnldCtryPoly("KEN") # } # NOT RUN { # }
Run the code above in your browser using DataLab