Skip to content

Commit e4239c9

Browse files
committed
Remove caTools dependency
Instead, use base64 encoding function from httpuv
1 parent 36aefad commit e4239c9

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

DESCRIPTION

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ Depends:
1616
Imports:
1717
tools,
1818
utils,
19-
httpuv (>= 1.2.0),
20-
caTools,
19+
httpuv (>= 1.2.2),
2120
RJSONIO,
2221
xtable,
2322
digest,

NAMESPACE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ export(wellPanel)
181181
export(withMathJax)
182182
export(withReactiveDomain)
183183
export(withTags)
184-
import(caTools)
185184
import(digest)
186185
import(htmltools)
187186
import(httpuv)

R/shiny.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ NULL
1515
#' @name shiny-package
1616
#' @aliases shiny
1717
#' @docType package
18-
#' @import htmltools httpuv caTools xtable digest methods
18+
#' @import htmltools httpuv xtable digest methods
1919
#' @importFrom RJSONIO fromJSON
2020
NULL
2121

@@ -671,7 +671,7 @@ ShinySession <- setRefClass(
671671
fileData <- readBin(file, 'raw', n=bytes)
672672

673673
if (isTRUE(.clientData$.values$allowDataUriScheme)) {
674-
b64 <- base64encode(fileData)
674+
b64 <- rawToBase64(fileData)
675675
return(paste('data:', contentType, ';base64,', b64, sep=''))
676676
} else {
677677
return(saveFileUrl(name, fileData, contentType))

0 commit comments

Comments
 (0)