Skip to content

Commit

Permalink
fix: Make girafe_options() more robust to changes in htmlwidgets::siz…
Browse files Browse the repository at this point in the history
…ingPolicy()
  • Loading branch information
davidgohel authored Dec 2, 2022
2 parents 90025c1 + 9bd3601 commit a199f2c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions R/girafe_options.R
Original file line number Diff line number Diff line change
Expand Up @@ -618,10 +618,7 @@ merge_options <- function(options, args){

merge_sizing_policy <- function(policy, args) {
for (arg in args) {
if (is.list(arg) && all(names(arg) %in% c(
"defaultWidth", "defaultHeight", "padding",
"viewer", "browser", "knitr"
))) {
if (is.list(arg) && all(names(arg) %in% names(htmlwidgets::sizingPolicy()))) {
policy <- arg
}
}
Expand Down

0 comments on commit a199f2c

Please sign in to comment.