Skip to content

Commit

Permalink
Revert "Prefer archive because of qs issues"
Browse files Browse the repository at this point in the history
This reverts commit 20b41ef.
  • Loading branch information
mattfidler committed May 15, 2024
1 parent 20b41ef commit c843f7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,8 @@ rxUiDecompress <- function(ui) {
rxUiCompress <- function(ui) {
if (!inherits(ui, "rxUi")) return(ui)
if (is.environment(ui)) {
.ret <- try(qs::qserialize(ui, preset="archive"), silent=TRUE)
if (inherits(.ret, "try-error")) .ret <- qs::qserialize(ui, preset="fast")
.ret <- try(qs::qserialize(ui, preset="fast"), silent=TRUE)
if (inherits(.ret, "try-error")) .ret <- qs::qserialize(ui, preset="archive")
class(.ret) <- c("rxUi", "raw")
return(.ret)
}
Expand Down

0 comments on commit c843f7d

Please sign in to comment.