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"’
Looks like a newer version of
terra
no longer supports characters for the functiontrim
resulting in the following error and affecting a number of thegeodata
functions