R/package.R

Defines functions run_api_example browse_api_examples deckgljs_version

deckgljs_version <- function() {
  use_deps("deck.gl")$deck.gl$version
}

browse_api_examples <- function() {
  system.file("examples/deckgl-api-reference", package = "deckgl") %>%
    list.files()
}

run_api_example <- function(script_name = "arc-layer.R") {
  system.file("examples/deckgl-api-reference", package = "deckgl") %>%
    paste0("/", script_name) %>%
    source()
}

Try the deckgl package in your browser

Any scripts or data that you put into this service are public.

deckgl documentation built on July 1, 2020, 7:36 p.m.