From ac79496921579d40dcb82b7837eabc0d4467acff Mon Sep 17 00:00:00 2001 From: Amit Date: Mon, 28 Mar 2016 15:56:36 +0000 Subject: [PATCH 1/2] Added an example to save as html I looked for a long time how to save the file, and then I found that you had already stated how to in one of your issues... so I'm adding it to the comments here so that you can Roxygen it and then the help will state how to do it. --- R/D3TableFilter.R | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/R/D3TableFilter.R b/R/D3TableFilter.R index b882d50..9f6fc13 100755 --- a/R/D3TableFilter.R +++ b/R/D3TableFilter.R @@ -125,6 +125,18 @@ #' col_0 = "auto:white:green" #' ) #' +#' # ---------------------------------------------------------------------------- +#' # to save widget as a freestanding html file +#' # ---------------------------------------------------------------------------- +#' library(magrittr) +#' library(htmlwidgets) +#' library(D3TableFilter) +#' mtcars %>% d3tf(tableProps = tableProps, +#' showRowNames = TRUE, +#' tableStyle = "table table-bordered") %>% +#' saveWidget(file = "test.html", selfcontained = TRUE) +#' +#' #' #' @import gtools #' @import htmlwidgets From de1c82a4a8f67ac3df25a6bc14a4d4b1330fb0b5 Mon Sep 17 00:00:00 2001 From: Amit Date: Mon, 4 Apr 2016 15:00:54 +0000 Subject: [PATCH 2/2] Update D3TableFilter.R Changed selfcontained --- R/D3TableFilter.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/D3TableFilter.R b/R/D3TableFilter.R index 9f6fc13..88a44d7 100755 --- a/R/D3TableFilter.R +++ b/R/D3TableFilter.R @@ -134,7 +134,7 @@ #' mtcars %>% d3tf(tableProps = tableProps, #' showRowNames = TRUE, #' tableStyle = "table table-bordered") %>% -#' saveWidget(file = "test.html", selfcontained = TRUE) +#' saveWidget(file = "test.html", selfcontained = FALSE) #' #' #'