We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8bec70 commit 2dd63d7Copy full SHA for 2dd63d7
R/view.R
@@ -75,6 +75,10 @@ str_view_widget <- function(lines) {
75
)
76
html <- htmltools::HTML(bullets)
77
78
+ if (!requireNamespace("htmlwidgets", quietly = TRUE)) {
79
+ stop("htmlwidgets package required for str_view(). \nPlease install.packages(\"htmlwidgets\") to use this functionality.",
80
+ call. = FALSE)
81
+ }
82
size <- htmlwidgets::sizingPolicy(
83
knitr.figure = FALSE,
84
defaultHeight = pmin(10 * length(lines), 300),
0 commit comments