Not specifying opacity and/or colorOptions leads to error
Closed this issue · 3 comments
frousseu commented
Hello!
An error occurs if argument colorOptions
is not given when opacity
is. Here is an example from the help file:
library(leaflet)
library(leafem)
library(stars)
tif = system.file("tif/L7_ETMs.tif", package = "stars")
x1 = read_stars(tif)
x1 = x1[, , , 3] # band 3
leaflet() %>%
addTiles() %>%
leafem:::addGeoRaster(
x1
, opacity = 1
)
## Error in evalAll(list) :
## promise already under evaluation: recursive default argument reference or earlier problems?
The same error arises if both opacity
and colorOptions
are not specified. This is with R 4.0.4 and leafem 0.1.3 on Windows.
Thanks!
frousseu commented
I should add that only specifying colorOptions
and not opacity
does not lead to an error.
tim-salabim commented
Can you please try with remotes::install_github("r-spatial/leafem")
?
frousseu commented
With the GitHub version it works