R Interface to Leaflet Maps
Permalink
Failed to load latest commit information.
.github Add comment about webshot being required for reprex::reprex to work (#… Apr 18, 2018
R Fix Crosstalk + Shiny redraw issue (#584) Sep 10, 2018
data-raw v2.0.0 init submission to cran (#530) Apr 19, 2018
data v2.0.0 init submission to cran (#530) Apr 19, 2018
docs ./docs v2.0.2 (#580) Aug 28, 2018
inst fix typo of lon to lng for latLng value (#566) Jul 2, 2018
javascript fix typo of lon to lng for latLng value (#566) Jul 2, 2018
man-roxygen added data arg to addXXX methods, including addLegend Feb 12, 2018
man v2.0.2 (#579) Aug 24, 2018
revdep v2.0.2 (#579) Aug 24, 2018
scripts ./docs v2.0.2 (#580) Aug 28, 2018
tests require scales >= 1.0.0 and fix broken test (#578) Aug 24, 2018
.Rbuildignore add cran comments and update revdep Mar 29, 2018
.bowerrc Add topojson support via omnivore Jun 19, 2015
.eslintrc.json es2015: Standardize on double-quotes; modularize util and data frame May 13, 2016
.gitignore pass devtools::check() Mar 27, 2018
.lintr lintr (#5) Feb 16, 2018
.travis.yml lintr (#5) Feb 16, 2018
DESCRIPTION v2.0.2 (#579) Aug 24, 2018
Gruntfile.js es2015: Standardize on double-quotes; modularize util and data frame May 13, 2016
LICENSE.note v2.0.0 init submission to cran (#530) Apr 19, 2018
NAMESPACE addMapPane to add extra panes within leaflet (#549) May 22, 2018
NEWS Fix Crosstalk + Shiny redraw issue (#584) Sep 10, 2018
README.md Show Travis build status for master branch only Aug 21, 2017
cran-comments.md v2.0.2 (#579) Aug 24, 2018
leaflet.Rproj Upgraded Leaflet.providers to latest rel Sep 9, 2016
npm-shrinkwrap.json added grunt-cli to npm devdependencies and removed unnecessary npm info Mar 28, 2018
package.json added grunt-cli to npm devdependencies and removed unnecessary npm info Mar 28, 2018

README.md

An R Interface to Leaflet Maps

Build Status

Leaflet is an open-source JavaScript library for interactive maps. This R package makes it easy to create Leaflet maps from R.

library(leaflet)
m = leaflet() %>% addTiles()
m  # a map with the default OSM tile layer

m = m %>% setView(-93.65, 42.0285, zoom = 17)
m

m %>% addPopups(-93.65, 42.0285, 'Here is the <b>Department of Statistics</b>, ISU')

Installation

You can install this package from CRAN, or the development version from Github:

# CRAN version
install.packages('leaflet')

# Or Github version
if (!require('devtools')) install.packages('devtools')
devtools::install_github('rstudio/leaflet')

Documentation

In addition to the usual R package documentation, we also have extensive docs and examples at: http://rstudio.github.io/leaflet You may use Github issues to file bug reports or feature requests, and ask questions on StackOverflow or in the Shiny mailing list.

Development

To make additions or modifications to the JavaScript htmlwidgets binding layer, you must use Grunt to build and test. Please make sure Node.js is installed on your system, then run:

npm install -g grunt-cli
npm install

Now you can build/minify/lint/test using grunt build, or run in "watch" mode by just running grunt. JS sources go into javascript/src and tests go into javascript/tests.

License

This package is licensed to you under the terms of the GNU General Public License version 3 or later.

Copyright 2013-2015 RStudio, Inc.