Skip to content

Commit a7aa5cb

Browse files
authored
Add brotli import (#204)
1 parent d5207c1 commit a7aa5cb

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ Imports:
2020
digest,
2121
base64enc,
2222
mime,
23-
crayon
23+
crayon,
24+
brotli
2425
Suggests:
2526
testthat
2627
Collate:

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import(dashHtmlComponents)
1212
importFrom(R6,R6Class)
1313
importFrom(assertthat,assert_that)
1414
importFrom(base64enc,base64encode)
15+
importFrom(brotli,brotli_compress)
1516
importFrom(digest,sha1)
1617
importFrom(fiery,Fire)
1718
importFrom(fiery,combined_log_format)

R/dash.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Dash <- R6::R6Class(
2222

2323
#' @description
2424
#' Create and configure a Dash application.
25-
#' @param server The web server used to power the application. Must be a [fiery::Fire] object.
25+
#' @param server [fiery::Fire] object. The web server used to power the application.
2626
#' @param assets_folder Character. A path, relative to the current working directory,
2727
#' for extra files to be used in the browser. All .js and
2828
#' .css files will be loaded immediately unless excluded by `assets_ignore`,

R/imports.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@
1111
#' @importFrom utils getFromNamespace
1212
#' @importFrom stats setNames
1313
#' @importFrom tools file_ext
14+
#' @importFrom brotli brotli_compress
1415
NULL

R/utils.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ insertIntoCallbackMap <- function(map, inputs, output, state, func, clientside_f
329329
clientside_function=clientside_function
330330
)
331331
if (length(map) >= 2) {
332-
ids <- lapply(names(map), function(x) dash:::getIdProps(x)$ids)
333-
props <- lapply(names(map), function(x) dash:::getIdProps(x)$props)
332+
ids <- lapply(names(map), function(x) getIdProps(x)$ids)
333+
props <- lapply(names(map), function(x) getIdProps(x)$props)
334334

335335
outputs_as_list <- mapply(paste, ids, props, sep=".", SIMPLIFY = FALSE)
336336

man/Dash.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)