Running examples in ‘mapmisc-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: geocode
> ### Title: Georeferencing with Google
> ### Aliases: geocode
> 
> ### ** Examples
> 
> 
> 
> cities=try(geocode('Ulan batar'), silent=TRUE)
> data('worldMap')
> worldMap = terra::unwrap(worldMap)
> 
> if(!all(class(cities) == 'try-error') ) { 
+ citiesT = project(cities, crs(worldMap))
+ oldpar=map.new(citiesT, buffer=5000*1000)
+ plot(worldMap, add=TRUE)
+ points(citiesT, col='red')
+ suppressWarnings(text(citiesT, labels=citiesT$name, col='red',pos=4))
+ suppressWarnings(text(citiesT, labels=citiesT$display_name, col='red',pos=1))
+ par(oldpar)
+ }
Error in text.default(xy[, 1], xy[, 2], labels, ...) : 
  conversion failure on 'Улаанбаатар, Нарны зам, Гандан ᠭᠠᠩᠳᠠᠨ, Баянгол ᠪᠠᠶᠠᠨᠭᠣᠣᠯ, Улаанбаатар ᠤᠯᠠᠭᠠᠨᠪᠠᠭᠠᠲᠤᠷ, 16051, Монгол улс ᠮᠤᠩᠭᠤᠯ ᠤᠯᠤᠰ' in 'mbcsToSbcs': for У
Execution halted
Running examples in ‘mapmisc-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: geocode
> ### Title: Georeferencing with Google
> ### Aliases: geocode
> 
> ### ** Examples
> 
> 
> 
> cities=try(geocode('Ulan batar'), silent=TRUE)
> data('worldMap')
> worldMap = terra::unwrap(worldMap)
> 
> if(!all(class(cities) == 'try-error') ) { 
+ citiesT = project(cities, crs(worldMap))
+ oldpar=map.new(citiesT, buffer=5000*1000)
+ plot(worldMap, add=TRUE)
+ points(citiesT, col='red')
+ suppressWarnings(text(citiesT, labels=citiesT$name, col='red',pos=4))
+ suppressWarnings(text(citiesT, labels=citiesT$display_name, col='red',pos=1))
+ par(oldpar)
+ }
Error in text.default(xy[, 1], xy[, 2], labels, ...) : 
  conversion failure on 'Улаанбаатар, Нарны зам, Гандан ᠭᠠᠩᠳᠠᠨ, Баянгол ᠪᠠᠶᠠᠨᠭᠣᠣᠯ, Улаанбаатар ᠤᠯᠠᠭᠠᠨᠪᠠᠭᠠᠲᠤᠷ, 16051, Монгол улс ᠮᠤᠩᠭᠤᠯ ᠤᠯᠤᠰ' in 'mbcsToSbcs': for У (U+0423)
Execution halted
Note: found 1 marked UTF-8 string
Running examples in ‘mapmisc-Ex.R’ failed
The error most likely occurred in:

> ### Name: geocode
> ### Title: Georeferencing with Google
> ### Aliases: geocode
> 
> ### ** Examples
> 
> 
> 
> cities=try(geocode('Ulan batar'), silent=TRUE)
> data('worldMap')
> worldMap = terra::unwrap(worldMap)
> 
> if(!all(class(cities) == 'try-error') ) { 
+ citiesT = project(cities, crs(worldMap))
+ oldpar=map.new(citiesT, buffer=5000*1000)
+ plot(worldMap, add=TRUE)
+ points(citiesT, col='red')
+ suppressWarnings(text(citiesT, labels=citiesT$name, col='red',pos=4))
+ suppressWarnings(text(citiesT, labels=citiesT$display_name, col='red',pos=1))
+ par(oldpar)
+ }
Error in text.default(xy[, 1], xy[, 2], labels, ...) : 
  conversion failure on 'Улаанбаатар, Нарны зам, Гандан ᠭᠠᠩᠳᠠᠨ, Баянгол ᠪᠠᠶᠠᠨᠭᠣᠣᠯ, Улаанбаатар ᠤᠯᠠᠭᠠᠨᠪᠠᠭᠠᠲᠤᠷ, 16051, Монгол улс ᠮᠤᠩᠭᠤᠯ ᠤᠯᠤᠰ' in 'mbcsToSbcs': for У (U+0423)
Execution halted
Note: found 1 marked UTF-8 string
Running examples in ‘mapmisc-Ex.R’ failed
The error most likely occurred in:

> ### Name: geocode
> ### Title: Georeferencing with Google
> ### Aliases: geocode
> 
> ### ** Examples
> 
> 
> 
> cities=try(geocode('Ulan batar'), silent=TRUE)
> data('worldMap')
> worldMap = terra::unwrap(worldMap)
> 
> if(!all(class(cities) == 'try-error') ) { 
+ citiesT = project(cities, crs(worldMap))
+ oldpar=map.new(citiesT, buffer=5000*1000)
+ plot(worldMap, add=TRUE)
+ points(citiesT, col='red')
+ suppressWarnings(text(citiesT, labels=citiesT$name, col='red',pos=4))
+ suppressWarnings(text(citiesT, labels=citiesT$display_name, col='red',pos=1))
+ par(oldpar)
+ }
Error in text.default(xy[, 1], xy[, 2], labels, ...) : 
  conversion failure on 'Улаанбаатар, Нарны зам, Гандан ᠭᠠᠩᠳᠠᠨ, Баянгол ᠪᠠᠶᠠᠨᠭᠣᠣᠯ, Улаанбаатар ᠤᠯᠠᠭᠠᠨᠪᠠᠭᠠᠲᠤᠷ, 16051, Монгол улс ᠮᠤᠩᠭᠤᠯ ᠤᠯᠤᠰ' in 'mbcsToSbcs': for У (U+0423)
Execution halted
Running examples in 'mapmisc-Ex.R' failed
The error most likely occurred in:

> ### Name: geocode
> ### Title: Georeferencing with Google
> ### Aliases: geocode
> 
> ### ** Examples
> 
> 
> 
> cities=try(geocode('Ulan batar'), silent=TRUE)
> data('worldMap')
> worldMap = terra::unwrap(worldMap)
> 
> if(!all(class(cities) == 'try-error') ) { 
+ citiesT = project(cities, crs(worldMap))
+ oldpar=map.new(citiesT, buffer=5000*1000)
+ plot(worldMap, add=TRUE)
+ points(citiesT, col='red')
+ suppressWarnings(text(citiesT, labels=citiesT$name, col='red',pos=4))
+ suppressWarnings(text(citiesT, labels=citiesT$display_name, col='red',pos=1))
+ par(oldpar)
+ }
Error in text.default(xy[, 1], xy[, 2], labels, ...) : 
  conversion failure on 'Улаанбаатар, Нарны зам, Гандан ᠭᠠᠩᠳᠠᠨ, Баянгол ᠪᠠᠶᠠᠨᠭᠣᠣᠯ, Улаанбаатар ᠤᠯᠠᠭᠠᠨᠪᠠᠭᠠᠲᠤᠷ, 16051, Монгол улс ᠮᠤᠩᠭᠤᠯ ᠤᠯᠤᠰ' in 'mbcsToSbcs': for У (U+0423)
Execution halted