8
8
# ' multiple colorbars.
9
9
# ' @author Carson Sievert
10
10
# ' @export
11
- # ' @examples
11
+ # ' @examplesIf interactive() || !identical(.Platform$OS.type, "windows")
12
12
# '
13
13
# ' p <- plot_ly(mtcars, x = ~wt, y = ~mpg, color = ~cyl)
14
14
# '
@@ -112,7 +112,7 @@ hide_guides <- function(p) {
112
112
# ' @param p a plotly object.
113
113
# ' @export
114
114
# ' @seealso [hide_legend()]
115
- # ' @examples
115
+ # ' @examplesIf interactive() || !identical(.Platform$OS.type, "windows")
116
116
# '
117
117
# ' p <- plot_ly(mtcars, x = ~wt, y = ~cyl, color = ~cyl)
118
118
# ' hide_colorbar(p)
@@ -136,7 +136,7 @@ hide_colorbar <- function(p) {
136
136
# ' @param p a plotly object.
137
137
# ' @export
138
138
# ' @seealso [hide_colorbar()]
139
- # ' @examples
139
+ # ' @examplesIf interactive() || !identical(.Platform$OS.type, "windows")
140
140
# '
141
141
# ' p <- plot_ly(mtcars, x = ~wt, y = ~cyl, color = ~factor(cyl))
142
142
# ' hide_legend(p)
@@ -153,7 +153,7 @@ hide_legend <- function(p) {
153
153
# '
154
154
# ' @param p a plotly or ggplot object.
155
155
# ' @export
156
- # ' @examples
156
+ # ' @examplesIf interactive() || !identical(.Platform$OS.type, "windows")
157
157
# '
158
158
# ' # currently no bargl trace type
159
159
# ' toWebGL(ggplot() + geom_bar(aes(1:10)))
@@ -197,7 +197,7 @@ plotly_empty <- function(...) {
197
197
# ' @author Carson Sievert
198
198
# ' @export
199
199
# ' @references <https://plotly-r.com/embedding-images.html>
200
- # ' @examples
200
+ # ' @examplesIf interactive() || !identical(.Platform$OS.type, "windows")
201
201
# '
202
202
# ' # a red gradient (from ?as.raster)
203
203
# ' r <- as.raster(matrix(hcl(0, 80, seq(50, 80, 10)), nrow = 4, ncol = 5))
0 commit comments