Skip to content

Commit c36a44c

Browse files
committed
fix typos
1 parent d16be22 commit c36a44c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/print.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#' @importFrom htmlwidgets sizingPolicy
88
print.plotly <- function(x, ...) {
99
if (!inherits(x, "htmlwidget")) x <- as.widget(x)
10-
get("print.htmlwidget", envir = asNamespace("htmlwidgets"))(w, ...)
10+
get("print.htmlwidget", envir = asNamespace("htmlwidgets"))(x, ...)
1111
}
1212

1313
#' Print a plotly object in a knitr doc
@@ -18,7 +18,7 @@ print.plotly <- function(x, ...) {
1818
#' @export
1919
knit_print.plotly <- function(x, options, ...) {
2020
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, ...)
2222
}
2323

2424
#' Convert a plotly object to an htmlwidget object

0 commit comments

Comments
 (0)