diff --git a/R/build-reference.R b/R/build-reference.R index 5eb26ecf9..3900e3d8c 100644 --- a/R/build-reference.R +++ b/R/build-reference.R @@ -224,7 +224,7 @@ examples_env <- function(pkg, seed = 1014, devel = TRUE, envir = parent.frame()) width <- purrr::pluck(pkg, "meta", "code", "width", .default = 80) withr::local_options(width = width, .local_envir = envir) withr::local_seed(seed) - if (requireNamespace("htmltools", quietly = TRUE)) { + if (requireNamespace("htmlwidgets", quietly = TRUE)) { htmlwidgets::setWidgetIdSeed(seed) }