rspatial / geodata

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

Issue with trim #1

Closed ani-ghosh closed 2 years ago

ani-ghosh commented 2 years ago

Looks like a newer version of terra no longer supports characters for the function trim resulting in the following error and affecting a number of the geodata functions

country <- "Kenya"
### works 
### geodata_0.3-1 terra_1.3-9
> toupper(trim(country[1]))
[1] "KENYA"

### doesn't work 
### geodata_0.3-1 terra_1.4-3  
> toupper(trim(country[1]))
Error in (function (classes, fdef, mtable)  : 
  unable to find an inherited method for function ‘trim’ for signature ‘"character"’