R: Error when using viewRGB() and editMap()

216 Views Asked by At

Below is the code I am using:

if (interactive()) {
  library(raster)
  library(plainview)

  viewRGB(plainview::poppendorf, 4, 3, 2) # true-color
  viewRGB(plainview::poppendorf, 5, 4, 3) # false-color
}

I got the following error message:

Error in leafem::addHomeButton(map = map, ext = ext, layer.name = layer.name,  : 
unused argument (layer.name = layer.name)
In addition: Warning message:
'mapview::addHomeButton' is deprecated.
Use 'leafem::addHomeButton' instead.
See help("Deprecated") and help("mapview-deprecated"). 

Any help is much appreciated!

-Zhou

0

There are 0 best solutions below