Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into develop
  • Loading branch information
trafficonese committed Mar 16, 2024
2 parents 86d5469 + 29455a3 commit 26e8018
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,27 @@ iconSetToIcons <- function(x) {
colVals <- unname(sapply(x, `[[`, col))
if (length(unique(colVals)) == 1) {
return(colVals[[1]])
}
else {
} else {
return(colVals)
}
}))
}

b64EncodePackedIcons <- function (packedIcons) {
if (is.null(packedIcons))
b64EncodePackedIcons <- function(packedIcons) {
if (is.null(packedIcons)) {
return(packedIcons)
}
packedIcons$data <- sapply(packedIcons$data, function(icon) {
if (is.character(icon) && file.exists(icon)) {
xfun::base64_uri(icon)
}
else {
} else {
icon
}
}, USE.NAMES = FALSE)
packedIcons
}

packStrings <- function (strings) {
packStrings <- function(strings) {
if (length(strings) == 0) {
return(NULL)
}
Expand Down

0 comments on commit 26e8018

Please sign in to comment.