Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b922d85

Browse filesBrowse files
committed
finishing touches
1 parent 1afc1c0 commit b922d85
Copy full SHA for b922d85

File tree

Expand file treeCollapse file tree

2 files changed

+7
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-3
lines changed

‎R/orca.R

Copy file name to clipboardExpand all lines: R/orca.R
+4-2Lines changed: 4 additions & 2 deletions
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

Copy file name to clipboardExpand all lines: man/orca.Rd
+3-1Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.