The goal of maplibre is to make it easy to create elegant and interactive maps in RMarkdown documents and Shiny applications.
You can install the development version of maplibre from GitHub with:
# install.packages("devtools")
devtools::install_github("eodaGmbH/r-maplibregl")
This is a basic example which shows you how to solve a common problem:
library(maplibre)
## basic example code