R HTML Widgets

install.packages("DiagrammeR")
install.packages("leaflet")
install.packages("DT")

switch widgets on

options(nextjournal.display.htmlwidgetsEnabled=TRUE)

leaflet

library(leaflet)
leaflet() %>%
  addTiles() %>%  # Add default OpenStreetMap map tiles
  addMarkers(lng=174.768, lat=-36.852, popup="The birthplace of R")

datatable

library(DT)
datatable(iris)