Skip to content

Commit 2368c0c

Browse files
authored
Merge pull request #1426 from Alanocallaghan/orca_check
Check for plotly's orca not just orca
2 parents 561871d + 061d711 commit 2368c0c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

R/orca.R

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,14 @@ orca_serve <- function(port = 5151, mathjax = FALSE, safe = FALSE, request_limit
204204
)
205205
}
206206

207+
correct_orca <- function() {
208+
orca_help <- processx::run("orca", "-h")
209+
grepl("plotly", orca_help[["stdout"]], ignore.case = TRUE)
210+
}
211+
207212

208213
orca_available <- function() {
209-
if (Sys.which("orca") == "") {
214+
if (Sys.which("orca") == "" || !correct_orca()) {
210215
stop(
211216
"The orca command-line utility is required for this functionality.\n\n",
212217
"Please follow the installation instructions here -- https://github.com/plotly/orca#installation",

0 commit comments

Comments
 (0)