diff --git a/R/tableHTML.R b/R/tableHTML.R index c90b600..52844af 100644 --- a/R/tableHTML.R +++ b/R/tableHTML.R @@ -40,6 +40,9 @@ #' with the print.tableHTML method if using Rstudio otherwise it will use the default #' browser. Use \code{print(tableHTML(obj), viewer = FALSE)} or \code{str(tableHTML(obj))} #' to view the actual html code. +#' +#' In order to use tableHTML with shiny you can use the functions renderUI (in server.R) and +#' uiOutput (in ui.R) directly, since the tableHTML is an HTML object. #' #' @param obj Needs to be a data.frame or a matrix or an arbitrary object that has the #' data.frame class and can be coersible to a data.frame (e.g data.table, tbl, etc.) diff --git a/man/tableHTML.Rd b/man/tableHTML.Rd index abf022e..732b291 100644 --- a/man/tableHTML.Rd +++ b/man/tableHTML.Rd @@ -108,6 +108,9 @@ Printing the table will result in rendering it in R studio's viewer with the print.tableHTML method if using Rstudio otherwise it will use the default browser. Use \code{print(tableHTML(obj), viewer = FALSE)} or \code{str(tableHTML(obj))} to view the actual html code. + +In order to use tableHTML with shiny you can use the functions renderUI (in server.R) and +uiOutput (in ui.R) directly, since the tableHTML is an HTML object. } \examples{ tableHTML(mtcars)