NINAnor / NIviz

Code and functions for improved visualization of indicator data, thematic indices, and ecosystem indices from the Norwegian Nature Index work.
https://ninanor.github.io/NIviz/index.html
1 stars 0 forks source link

Revert "#40, #39, #38, #35, #15" #45

Closed ChloeRN closed 1 year ago

ChloeRN commented 1 year ago

Reverts NINAnor/NIviz#44 We have to go a step back because the addition of the interactive leaflet map screws up the building of the book. This one was a bit tricky to pin down, but it looks like there is an issue with interactive html widget (e.g. leaflet maps) going into a temporary directory, which is then no longer available at the crucial step in the book building. This means that chapters may be built individually but building the whole book at once will break down. https://github.com/rstudio/bookdown/issues/15

ChloeRN commented 1 year ago

There seem to be a few workarounds to the issue: 1) Disable caching for relevant chapter and build all chapters separately: https://github.com/rstudio/bookdown/issues/15 2) Manually save and import the widget in interactive sessions: arc2r/book#31 (they mention the problem does not occur with GitHub actions) 3) Potentially: using a newer tmap::view_map function: https://github.com/r-tmap/tmap-book/issues/17

anders-kolstad commented 1 year ago

Fixed in #46