Skip to content

Commit b922d85

Browse files
committed
finishing touches
1 parent 1afc1c0 commit b922d85

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

R/orca.R

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' Static image export via orca
22
#'
3-
#' The function requires the orca command-line utility,
3+
#' The function makes a system call to the orca command-line utility,
44
#' see the installation instructions [here](https://github.com/plotly/orca#installation)
55
#'
66
#' @param p a plotly object.
@@ -23,10 +23,12 @@
2323
#' @author Carson Sievert
2424
#' @examples
2525
#'
26+
#' \dontrun{
2627
#' p <- plot_ly(z = ~volcano) %>% add_surface()
2728
#' orca(p, "surface-plot.png")
2829
#' orca(p, "surface-plot.svg")
2930
#' orca(p, "surface-plot.pdf")
31+
#' }
3032
#'
3133

3234
orca <- function(p, file = "plot.png", format = tools::file_ext(file),
@@ -49,7 +51,7 @@ orca <- function(p, file = "plot.png", format = tools::file_ext(file),
4951
plotlyjs_file <- file.path(plotlyjs$src$file, plotlyjs$script)
5052

5153
args <- c(
52-
"graph", plotly:::to_JSON(b$x[c("data", "layout")]),
54+
"graph", to_JSON(b$x[c("data", "layout")]),
5355
"-o", file,
5456
"--format", format,
5557
"--plotlyjs", plotlyjs_file,

man/orca.Rd

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)