Extra functionality for leaflet R package.
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
R v1 Release (#136) Apr 20, 2018
docs update docs Apr 23, 2018
inst v1 Release (#136) Apr 20, 2018
man v1 Release (#136) Apr 20, 2018
revdep
scripts v1 Release (#136) Apr 20, 2018
.Rbuildignore
.gitignore do not ignore build folder Mar 23, 2018
.lintr lintr (#3) Mar 21, 2018
.travis.yml
CONDUCT.md Added a code of conduct. Dec 1, 2016
DESCRIPTION v1 Release (#136) Apr 20, 2018
LICENSE Initial commit Sep 26, 2016
LICENSE.note add a license.note for all plugins for leaflet.extras Mar 27, 2018
NAMESPACE Merge branch 'master' of https://github.com/markusdumke/leaflet.extras Mar 21, 2018
NEWS.md revdep. cran comments. and setup email draft. talk about lates plugin… Mar 29, 2018
README.Rmd v1 Release (#136) Apr 20, 2018
README.md update docs Apr 23, 2018
_pkgdown.yaml
appveyor.yml v1 Release (#136) Apr 20, 2018
cran-comments.md v1.0.0 release updates (#138) Apr 23, 2018
leaflet.extras.Rproj First commit Sep 26, 2016
package-lock.json add a license.note for all plugins for leaflet.extras Mar 27, 2018
package.json add a license.note for all plugins for leaflet.extras Mar 27, 2018
webpack.config.js add webpack config notes Mar 26, 2018

README.md

Project Status: Active – The project is being actively developed. Last-changedate License: GPL-3 keybase verified Travis-CI Build Status AppVeyor Build Status packageversion CRAN_Status_Badge

leaflet.extras

The goal of leaflet.extras package is to provide extra functionality to the leaflet R package using various leaflet plugins.

Installation

For CRAN version

install.packages('leaflet.extras')

For latest development version

# We need latest leaflet package from Github, as CRAN package is too old.
devtools::install_github('rstudio/leaflet')
devtools::install_github('bhaskarvk/leaflet.extras')

Progress

Plugins integrated so far ...

If you need a plugin that is not already implemented create an issue. See the FAQ section below for details.

Documentation

The R functions have been documented using roxygen, and should provide enough help to get started on using a feature. However some plugins have lots of options and it's not feasible to document every single detail. In such cases you are encouraged to check the plugin's documentation.

Currently there are no vignettes (contributions welcome), but there are plenty of examples available. You can see most of these examples in action at Rpubs:bhaskarvk.

FAQ

I want to use a certain leaflet plugin not integrated so far.

  • Good Solution: Create issues for plugins you wish incorporated but before that search the existing issues to see if issue already exists and if so comment on that issue instead of creating duplicates.
  • Better Solution: It would help in prioritizing if you can include additional details like why you need the plugin, how helpful will it be to everyone etc.
  • Best Solution: Code it yourself and submit a pull request. This is the fastest way to get a plugin into the package.

I submitted an issue for a plugin long time ago but it is still not available.

This package is being developed purely on a voluntary basis on spare time without any monetary compensation. So the development progress can stall at times. It may also not be possible to prioritize one-off requests that no one else is interested in. Getting more people interested in a feature request will help prioritize development. Other option is to contribute code. That will get you added to the contributer list and a thanks tweet.

I found a bug.

  • Good Solution: Search existing issue list and if no one has reported it create a new issue.
  • Better Solution: Along with issue submission provide a minimal reproducible code sample.
  • Best Solution: Fix the issue and submit a pull request. This is the fastest way to get a bug fixed.

I need a plugin which requires 1.x version of the leaflet JavaScript library

As of version 1.0.0, leaflet.extras supports leaflet.js version 1.x.

Development

To make additions to the plugin dependencies, please add the plugin using npm. Make sure it is compiled within the webpack.config.js. Finally, make sure htmlwidgets finds it within your plugin's dependency function.

To build the latest version of the plugins, please make sure Node.js is installed on your system, then run:

npm install
npm run build

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.