Attach Arrow and Geoarrow JavaScript dependencies to a widget.
Source: R/attachGeoArrowDependencies.R
attachGeoarrowDependencies.RdPipe-friendly functions to attach Arrow and Geoarrow JavaScript dependencies
to a widget created with createWidget.
Arguments
- x
A widget created with
createWidget.
Examples
library(listviewer)
wgt = jsonedit(
list("Just some dummy text")
, elementId = "lv-example"
)
attachGeoarrowDependencies(wgt)
## open the resulting page in the browser and inspect the page source, e.g.
## by pressing <Ctrl + u>. You should see two lines like:
# <script src="lib/apache-arrow-js-19.0.1/Arrow.es2015.min.js"></script>
# <script src="lib/geoarrow-js-0.3.2/geoarrow.umd.min.js"></script>
## !Version numbers of the JavaScript dependencies may differ!