-
Notifications
You must be signed in to change notification settings - Fork 11
/
README.Rmd
67 lines (45 loc) · 2.45 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
library(deckgl)
```
# r-deckgl: An R Interface to deck.gl
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/deckgl)](https://cran.r-project.org/package=deckgl) [![github_status_badge](https://img.shields.io/badge/github-v0.3.0-blue.svg)](https://github.com/crazycapivara/deckgl/releases/latest) [![Travis-CI Build Status](https://travis-ci.org/crazycapivara/deckgl.svg?branch=master)](https://travis-ci.org/crazycapivara/deckgl) [![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![deck.gl Version](https://img.shields.io/badge/deck.gl-v8.1.9-blue.svg)](https://github.com/visgl/deck.gl/releases/tag/v8.1.9)
The r-deckgl package makes the open-source JavaScript library [deck.gl](https://deck.gl/) available within R via the [htmlwidgets](https://www.htmlwidgets.org/) package.
![vancouver-blocks](man/figures/README-vancouver-blocks.png)
## Installation
```{r cran-installation, eval = FALSE}
install.packages("deckgl")
```
You can install the latest version of r-deckgl from github with:
```{r gh-installation, eval = FALSE}
# install.packages("remotes")
remotes::install_github("crazycapivara/deckgl")
```
```{r, child="vignettes/partials/_get-started"}
```
## Development
The JavaScript library of r-deckgl uses [webpack](https://webpack.js.org/) as module bundler. Therefore, you need [node.js](https://nodejs.org) to build the module. All JavaScript code is located in the `javascript/src` folder and test components go to `javascript/src/test-components`.
Install deps and build the library from inside the `javascript` folder with:
```bash
npm install
npm run build
```
To spin up the [webpack-dev-server](https://github.com/webpack/webpack-dev-server) run:
```bash
npm run start
```
## Documentation
- [r-deckgl pkgdown Site](https://crazycapivara.github.io/deckgl/)
- [Example Scripts](https://github.com/crazycapivara/deckgl/tree/master/_examples)
- [deck.gl JavaScript API Reference](https://deck.gl/#/documentation/deckgl-api-reference)
## Note
If the `deckgl` widget is not visible in the viewer pane of RStudio, just open it in your browser by clicking "Show in new window" and everything will be fine.