Skip to content

Commit f69904a

Browse files
committed
Don't require mapbox to use orca, closes #1314
1 parent 08cf106 commit f69904a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

NEWS.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## IMPROVEMENTS
44

5-
* The `orca()` function now supports conversion of much larger figures (#1322)
5+
* The `orca()` function now supports conversion of much larger figures (#1322) and works without a mapbox api token (#1314).
66

77
## BUG FIXES
88

R/orca.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ orca <- function(p, file = "plot.png", format = tools::file_ext(file),
6666
if (!is.null(width)) args <- c(args, "--width", width)
6767
if (!is.null(height)) args <- c(args, "--height", height)
6868
if (!is.null(parallel_limit)) args <- c(args, "--parallel-limit", parallel_limit)
69-
if (!is.na(mapbox_token())) args <- c(args, "--mapbox-access-token", mapbox_token())
69+
if (!is.null(tryNULL(mapbox_token()))) args <- c(args, "--mapbox-access-token", mapbox_token())
7070
if (isTRUE(mathjax)) args <- c(args, "--mathjax", file.path(mathjax_path(), "MathJax.js"))
7171

7272
# TODO: point to local topojson? Should this only work if plot_geo(standalone = TRUE)?

0 commit comments

Comments
 (0)