Skip to content

leaflet

2.2.3Package record

Create Interactive Web Maps with the JavaScript 'Leaflet' Library

115packages dependsuggested by 122
1.6Mdownloads / year
53.2%test coverage
13/13flavors OK

Overview

About

Create and customize interactive maps using the 'Leaflet' JavaScript library and the 'htmlwidgets' package. These maps can be used directly from the R console, from 'RStudio', in Shiny applications and R Markdown documents.

Changes in 2.2.3
  • {leaflet} is now licensed under the MIT license (was GPL-2) (#958).
  • {leaflet} no longer install {sp} by default and attempts to convert object to sf internally before creating a map and warns when it fails conversion (@olivroy, #942).
  • The breweries91, atlStorms2005, and gadmCHE datasets are now {sf} objects (@olivroy, #944).
  • {leaflet} now requires R 3.5 and above (@olivroy, #944).
  • Color palette improvements. All color palette functions now support all {viridisLite} palettes ("magma", "inferno", "plasma", "viridis", "cividis", "rocket", "mako", and "turbo") (@jack-davison, #924).
  • Updated vignettes to replace {sp}/{raster} usage with {sf}/{terra} and their corresponding examples. (@jack-davison, #928)
  • Updated vignettes to replace {sp}/{raster} usage with {sf}/{terra} and their corresponding examples. (@jack-davison, #928)
  • addProviderTiles() will now error if the chosen provider does not match any currently loaded provider (by default, those in providers). This behaviour can be toggled off by setting the new check argument to FALSE (@jack-davison, #929)

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.3 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2.2.3
READMEYes · 177 wordsVignettesNoNEWSYes · 100% structured · mentions 2.2.3Citation fileNoWebsiteYes · pkgdown

The repository also keeps web-only articles.

Help pages
51 (8 internal)includes a package overview page
Examples that run
69%18 run in a plain check (1 of them under a condition) · 7 only when donttest examples are enabled (R CMD check --as-cran) · 1 never run
Exported functions with examples
54%
Documented parameters
84%
Return-value docs
33%
Help pages citing references
4%

Downloads

1.6M
CRAN downloads in the past year
Rank #283 · ~4.3K/day · ~131.5K/mo
Daily download trend is not available in this view yet.
142.6K30 days
406.9K90 days
1.6M1 year
Compare downloads with other packages →
Also on14.8K r2u10 autocran15.5K conda_forge250 c2d4u

Repository

842Stars
504Forks
301Open issues
20Open PRs
12Releases
1,122Commits
43Commit identities
rleaflet-mapspatialgis
1,122 commits · Last activity 2025-09-30 · +0.1% stars, 30d · Default branch at 2.2.3.9000, ahead of CRAN 2.2.3 (checked 2026-10-18)
Responsiveness
How these are sampled
PRs merged (all time)
76%
Median days to close, 50 most recently updated closed issues
18
Median days to close, 50 most recently updated closed PRs
4

Stars over time

2025-10-04 · 8292026-10-07 · 842
PracticesBeta

10 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/rstudio/leaflet on 2026-10-18.

Continuous integration (1)
GitHub Actions
Governance and community (3)
Contributing guideIssue templatesPR template
Docs source (2)
pkgdown

GitHub Pages site last deployed 2025-09-30

pkgdown site last built 2025-09-30

Reproducibility and dev environment (1)
data-raw/
Show all practicesHide 2 practices
CRAN release process (2)
cran-comments.mdrevdep/
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2025-10-08
    Pull request: opened by its own account
How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
25 external dependencies (excludes base and recommended)

Installing leaflet adds 49 packages (30 with compiled code, 45 MB of source tarballs). Heaviest: sf 9.3 MB, bslib 5.6 MB, sp 4.3 MB.

Depends (1)
R >= 3.5
LinkingTo (0)
none
Enhances (0)
none

Datasets

People & History

People (22)
Author, Maintainer since 2.2.3 (2025) · added in 2.2.3
Author
Author · added in 1.1.0
Author · added in 2.0.0
Author
Contributor, Copyright holder · added in 1.1.0
Leaflet.MagnifyingGlass plugin
Contributor, Copyright holder · added in 1.1.0
leaflet-measure plugin
Contributor, Copyright holder · added in 1.1.0
Leaflet.EasyButton plugin
Contributor, Copyright holder · added in 1.1.0
Leaflet.Terminator plugin
Contributor, Copyright holder · added in 1.1.0
Proj4Leaflet plugin
Contributor, Copyright holder · added in 1.1.0
Leaflet.awesome-markers plugin
Contributor
Leaflet library
Contributor, Copyright holder · added in 1.1.0
leaflet-omnivore plugin
Show 7 more contributorsHide 7 contributors
Contributor, Copyright holder · added in 1.1.0
topojson
Contributor, Copyright holder · added in 1.1.0
Leaflet.MiniMap plugin
Contributor, Copyright holder · added in 1.1.0
leaflet-locationfilter plugin
Contributor, Copyright holder
Leaflet library
Contributor · added in 1.1.0
Contributor · added in 1.1.0
Contributor
Copyright holder
Leaflet library
Copyright holder, Funder · added in 2.2.0

Previously maintained by Joe Cheng (1.0.0 to 2.2.2).

Listed in earlier versions (4)
Show 4 peopleHide 4 people
Leaflet Providers contributors
no longer listed · 1.0.0 to 2.0.2
RStudio
no longer listed · 1.0.0 to 2.1.2
jQuery Foundation and contributors
no longer listed · 1.0.0 to 2.1.2
Jacob Toye
no longer listed · 1.1.0
Releases (15)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 2.2.3Latest
    record
    2025-09-04 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 2.2.2
    record
    2024-03-26 · diff ↗ ·
    added 1 export
    gridOptions
  • 2.2.1
    record
    2023-11-13 · diff ↗
  • 2.2.0
    record
    2023-08-31 · diff ↗ ·
    added 1 export
    addRasterLegend
  • R
    R 4.3.0 released · 2023-04-21
  • 2.1.2
    record
    2023-03-10 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 2.1.1
    record
    2022-03-24 · diff ↗
  • 2.1.0
    record
    2022-02-16 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 2.0.4.1
    record
    2021-01-07 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 2.0.3
    record
    2019-11-16 · diff ↗ ·
    added 2 exports
    providers, providers.details
Show 11 earlier eventsHide 11 earlier events
  • R
    R 3.6.0 released · 2019-04-26
  • 2.0.2
    record
    2018-08-27 · diff ↗
  • 2.0.1
    record
    2018-06-04 · diff ↗ ·
    added 2 exports
    addMapPane, leafletSizingPolicy
  • R
    R 3.5.0 released · 2018-04-23
  • 2.0.0
    record
    2018-04-21 · diff ↗ ·
    added 3 exports
    flyTo, flyToBounds, groupOptions
  • R
    R 3.4.0 released · 2017-04-21
  • 1.1.0
    record
    2017-02-21 · diff ↗ ·
    added 34 exports
    addAwesomeMarkers, addEasyButton, addEasyButtonBar, addGraticule, addLabelOnlyMarkers, addMeasure, addMiniMap, addScaleBar, addSimpleGraticule, addTerminator, awesomeIconList, awesomeIcons, clearTopoJSON, derivePoints, derivePolygons, easyButton, easyButtonState, evalFormula, expandLimits, expandLimitsBbox, filterNULL, getMapData, highlightOptions, labelOptions, leafletCRS, leafletDependencies, leafletOptions, makeAwesomeIcon, removeMeasure, removeScaleBar and 4 more
  • R
    R 3.3.0 released · 2016-05-03
  • 1.0.1
    record
    2016-02-27 · diff ↗
  • 1.0.0
    record
    2015-06-24
  • R
    R 3.2.0 released · 2015-04-16

Package metadata

First published
2015-06-24
Total releases
15 / 11 yrs
License
MIT + file LICENSE OSI · relicensed from GPL-3 in 2.2.3
Minimum R
≥ 3.5
Bundled data
266 KB / 3 files
Download size
1.9 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("leaflet")
Aden-Buie, G., Benjamin Becquet, Brandon Copeland, CloudMade, Daniel Montague, Joerg Dietrich, Kartena AB, L. Voogdt, Leaflet contributors, Mapbox, Michael Bostock, Norkart AS, Posit Software, PBC, Robert Kajic, Agafonkin, V., Cheng, J., Johnson, K., Karambelkar, B., Russell, K., Schloerke, B., Wickham, H., & Xie, Y. (2025). leaflet: Create Interactive Web Maps with the JavaScript 'Leaflet' Library (Version 2.2.3) [Computer software]. https://doi.org/10.32614/CRAN.package.leaflet

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for leaflet version 2.2.3 [Data set]. HJJB, LLC. Data release v2026-10-20. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy