Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
repair broken root element
Browse files Browse the repository at this point in the history
  • Loading branch information
maxheld83 committed Nov 6, 2019
1 parent 9354d55 commit 5bb34a6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@
^package\.json$
^webpack\.config\.js$
^yarn\.lock$
^build\.R$
8 changes: 5 additions & 3 deletions R/reacthexgrid.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,16 @@ renderReacthexgrid <- function(expr, env = parent.frame(), quoted = FALSE) {
}

#' Called by HTMLWidgets to produce the widget's root element.
#' @rdname reacthexgrid-shiny
#' @param id,style,class attributes of the widget's root element
reacthexgrid_html <- function(id, style, class) {
#' @inheritDotParams htmltools::tagList
#' @rdname reacthexgrid-shiny
reacthexgrid_html <- function(id, style, class, ...) {
htmltools::tagList(
# Necessary for RStudio viewer version < 1.2
reactR::html_dependency_corejs(),
reactR::html_dependency_react(),
reactR::html_dependency_reacttools(),
htmltools::tags$div(id = id, class = class, style = style)
htmltools::tags$div(id = id, class = class, style = style),
...
)
}
7 changes: 6 additions & 1 deletion man/reacthexgrid-shiny.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5bb34a6

Please sign in to comment.