Skip to content

Commit

Permalink
Close #54
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Dec 20, 2019
1 parent 7a9cc00 commit 527ed78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
#' @export
# Define server logic required to draw a histogram
shinyAppServer = function(input, output, session) {
if (is.na(mapdeck::mapdeck_tokens()[[1]][[1]])) {
mapdeck_token = mapdeck::mapdeck_tokens()[[1]][[1]]
if (is.null(mapdeck_token)) {
message("No mapdeck token found on system. Trying environment variable MAPBOX")
mapdeck::set_token(token = Sys.getenv("MAPBOX"))
}
Expand Down

0 comments on commit 527ed78

Please sign in to comment.