Closed helgasoft closed 6 months ago
Thanks @helgasoft -- the dependencies aren't missing, they're just attached differently as of v2.2.0. The change was mentioned in the changelog for the v2.2.0 release.
Ok, version 2.2.0 says "the HTML dependencies for leaflet() are included in the dependencies item of the htmlwidget object it returns.". And they are there:
map <- leaflet(quakes[1:33,]) |> addTiles() |> addMarkers()
map$dependencies
But my library attempts to read them before any leaflet htmlwidget is actually built.
Is there a way to do that, like with v.2.1.0 shown above ?
ANSWER: leaflet()$dependencies
Discrepancy in dependencies returned from leaflet versions 2.1.0 and 2.2.2.
Created on 2024-04-23 with reprex v2.1.0
Created on 2024-04-23 with reprex v2.1.0