Skip to content

Commit 9cc3310

Browse files
committed
Add corejs dependency to scaffold so widgets work in RStudio <1.2
1 parent aa0c195 commit 9cc3310

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

inst/templates/widget_r.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ render${capName} <- function(expr, env = parent.frame(), quoted = FALSE) {
5353
#' @rdname ${name}-shiny
5454
${name}_html <- function(id, style, class, ...) {
5555
tagList(
56+
# Necessary for RStudio viewer version < 1.2
57+
reactR::html_dependency_corejs(),
5658
reactR::html_dependency_react(),
5759
reactR::html_dependency_reacttools(),
5860
htmltools::tags$div(id = id, class = class)

0 commit comments

Comments
 (0)