Skip to content

Commit

Permalink
Merge pull request #215 from crazycapivara/release/v0.3.0-pkgdown
Browse files Browse the repository at this point in the history
Release/v0.3.0 pkgdown
  • Loading branch information
crazycapivara authored Mar 26, 2023
2 parents b818fbc + 7b3cbfd commit 1741c8b
Show file tree
Hide file tree
Showing 128 changed files with 6,099 additions and 8,228 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@
^_vignettes$
^index.Rmd$
^index.md$
^CRAN-SUBMISSION$
3 changes: 3 additions & 0 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Version: 0.3.0
Date: 2023-02-19 20:07:38 UTC
SHA: 9efc9a20df037e8e03003655da8c8259de546b88
9 changes: 5 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: deckgl
Title: An R Interface to 'deck.gl'
Version: 0.2.9.9001
Date: 2020-05-23
Version: 0.3.0
Date: 2023-02-19
Authors@R: person("Stefan", "Kuethe", email = "crazycapivara@gmail.com", role = c("aut", "cre"))
Maintainer: Stefan Kuethe <crazycapivara@gmail.com>
Description: Makes 'deck.gl' <https://deck.gl/>, a WebGL-powered open-source JavaScript framework
Expand All @@ -25,13 +25,14 @@ Imports:
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
RoxygenNote: 6.1.1
RoxygenNote: 7.2.0
Suggests:
knitr,
rmarkdown,
testthat,
rprojroot,
sf,
scales,
RColorBrewer
RColorBrewer,
shiny
VignetteBuilder: knitr
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export(get_position)
export(get_property)
export(onRender)
export(renderDeckgl)
export(set_view_state)
export(update_deckgl)
export(use_carto_style)
export(use_contour_definition)
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# deckgl 0.3.0

* deck.gl v8.1.9
* Fix warnings

# deckgl 0.2.7

* __Get Started__ vignette
Expand Down
2 changes: 1 addition & 1 deletion R/layers_geojson-layer.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' Add a geojson layer to the deckgl widget
#'
#' The \code{GeoJsonLayer} takes in \href{http://geojson.org}{GeoJson} formatted data
#' The \code{GeoJsonLayer} takes in \href{https://geojson.org}{GeoJson} formatted data
#' and renders it as interactive polygons, lines and points.
#'
#' @inheritParams add_layer
Expand Down
21 changes: 21 additions & 0 deletions R/view-state.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#' Set the view state of the map
#' @inheritParams add_layer
#' @param latitude The latitude of the view state.
#' @param longitude The longitude of the view state.
#' @param zoom The zoom level of the view state.
#' @param pitch The pitch of the view state.
#' @param bearing The bearing of the view state.
#' @export
set_view_state <- function(deckgl, latitude = 37.8, longitude = -122.45,
zoom = 12, pitch = 0, bearing = 0) {

deckgl %>%
invoke_method(
"setViewState",
latitude = latitude,
longitude = longitude,
zoom = zoom,
pitch = pitch,
bearing = bearing
)
}
5 changes: 4 additions & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
mapbox_message <- ""
if (Sys.getenv("MAPBOX_API_TOKEN") == "") {
mapbox_message <- c(
"\nIf you want to add a base map from mapbox, ",
"\nIf you want to add a basemap from mapbox, ",
"it is recommended that you store your API token in an environment variable called MAPBOX_API_TOKEN.\n"
)
}
Expand All @@ -14,3 +14,6 @@
mapbox_message
)
} # nocov end


globalVariables(c("."))
4 changes: 2 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ 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_beta.2-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.4-blue.svg)](https://github.com/uber/deck.gl/releases/tag/v8.1.4)
[![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.

Expand Down
Loading

0 comments on commit 1741c8b

Please sign in to comment.