88# ' multiple colorbars.
99# ' @author Carson Sievert
1010# ' @export
11- # ' @examples
11+ # ' @examplesIf interactive() || !identical(.Platform$OS.type, "windows")
1212# '
1313# ' p <- plot_ly(mtcars, x = ~wt, y = ~mpg, color = ~cyl)
1414# '
@@ -112,7 +112,7 @@ hide_guides <- function(p) {
112112# ' @param p a plotly object.
113113# ' @export
114114# ' @seealso [hide_legend()]
115- # ' @examples
115+ # ' @examplesIf interactive() || !identical(.Platform$OS.type, "windows")
116116# '
117117# ' p <- plot_ly(mtcars, x = ~wt, y = ~cyl, color = ~cyl)
118118# ' hide_colorbar(p)
@@ -136,7 +136,7 @@ hide_colorbar <- function(p) {
136136# ' @param p a plotly object.
137137# ' @export
138138# ' @seealso [hide_colorbar()]
139- # ' @examples
139+ # ' @examplesIf interactive() || !identical(.Platform$OS.type, "windows")
140140# '
141141# ' p <- plot_ly(mtcars, x = ~wt, y = ~cyl, color = ~factor(cyl))
142142# ' hide_legend(p)
@@ -153,7 +153,7 @@ hide_legend <- function(p) {
153153# '
154154# ' @param p a plotly or ggplot object.
155155# ' @export
156- # ' @examples
156+ # ' @examplesIf interactive() || !identical(.Platform$OS.type, "windows")
157157# '
158158# ' # currently no bargl trace type
159159# ' toWebGL(ggplot() + geom_bar(aes(1:10)))
@@ -197,7 +197,7 @@ plotly_empty <- function(...) {
197197# ' @author Carson Sievert
198198# ' @export
199199# ' @references <https://plotly-r.com/embedding-images.html>
200- # ' @examples
200+ # ' @examplesIf interactive() || !identical(.Platform$OS.type, "windows")
201201# '
202202# ' # a red gradient (from ?as.raster)
203203# ' r <- as.raster(matrix(hcl(0, 80, seq(50, 80, 10)), nrow = 4, ncol = 5))
0 commit comments