File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 7
7
# ' @importFrom htmlwidgets sizingPolicy
8
8
print.plotly <- function (x , ... ) {
9
9
if (! inherits(x , " htmlwidget" )) x <- as.widget(x )
10
- get(" print.htmlwidget" , envir = asNamespace(" htmlwidgets" ))(w , ... )
10
+ get(" print.htmlwidget" , envir = asNamespace(" htmlwidgets" ))(x , ... )
11
11
}
12
12
13
13
# ' Print a plotly object in a knitr doc
@@ -18,7 +18,7 @@ print.plotly <- function(x, ...) {
18
18
# ' @export
19
19
knit_print.plotly <- function (x , options , ... ) {
20
20
if (! inherits(x , " htmlwidget" )) x <- as.widget(x )
21
- get(" knit_print.htmlwidget" , envir = asNamespace(" htmlwidgets" ))(w , options = options , ... )
21
+ get(" knit_print.htmlwidget" , envir = asNamespace(" htmlwidgets" ))(x , options = options , ... )
22
22
}
23
23
24
24
# ' Convert a plotly object to an htmlwidget object
You can’t perform that action at this time.
0 commit comments