rspatial / geodata

download geographic data
GNU General Public License v3.0
147 stars 15 forks source link

`gadm` requires specifying `level`, though it should be 1 by default #23

Closed AMBarbosa closed 2 years ago

AMBarbosa commented 2 years ago

The "Usage" section of the gadm() help file says level=1 by default, but the function fails if level isn't provided:

countries <- gadm(country = "Portugal", path = tempdir())

Error in gadm(country = "Portugal", path = tempdir()) : 
  provide a "level=" argument; levels can be 0, 1, or 2 for most countries, and higher for some

...whereas for world() the "Usage" defaults are working as expected. Cheers

rhijmans commented 2 years ago

Thanks! Fixed now.