From 72f75c249735325a64ab4c215e919f27d83cd9b0 Mon Sep 17 00:00:00 2001 From: vnijs Date: Thu, 25 Jul 2024 13:43:04 -0700 Subject: [PATCH] knitr issue in container "%||%" --- inst/app/global.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inst/app/global.R b/inst/app/global.R index 9b10181f..0c6da0a6 100644 --- a/inst/app/global.R +++ b/inst/app/global.R @@ -646,3 +646,5 @@ onStop(function() { # options("DT.TOJSON_ARGS" = list(na = "string")) ## Sorting on client-side would be as a string, not a numeric ## https://github.com/rstudio/DT/pull/536#issuecomment-385223433 + +if (getRversion() < "4.4.0") `%||%` <- function(x, y) if (is.null(x)) y else x