if (FALSE) {
library(leaflet)
# This example uses browser geolocation. RStudio users:
# this won't work in the Viewer pane; try popping it
# out into your system web browser.
leaflet() %>% addTiles() %>%
onRender("
function(el, x) {
// Navigate the map to the user's location
this.locate({setView: true});
}
")
# This example shows how you can make an R data frame available
# to your JavaScript code.
meh <- "
Run the code above in your browser using DataLab