From b91bcdb8a616b446d1ee30b5dd94dbf9741c1224 Mon Sep 17 00:00:00 2001 From: Stefan Bundfuss Date: Thu, 10 Oct 2024 14:16:17 +0000 Subject: [PATCH] #469 fix_assert_list_element: fix example --- R/assertions.R | 6 +++--- man/assert_list_element.Rd | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/R/assertions.R b/R/assertions.R index ddc0e1bc..851ee989 100644 --- a/R/assertions.R +++ b/R/assertions.R @@ -1497,16 +1497,16 @@ assert_expr_list <- function(arg, # nolint #' @export #' #' @examples +#' #' death <- list( #' dataset_name = "adsl", -#' filter = expr(DTHFL == "Y"), -#' date = expr(DTHDT), +#' date = "DTHDT", #' censor = 0 #' ) #' #' lstalv <- list( #' dataset_name = "adsl", -#' date = expr(LSTALVDT), +#' date = "LSTALVDT", #' censor = 1 #' ) #' diff --git a/man/assert_list_element.Rd b/man/assert_list_element.Rd index 6b25d9a1..9e4224b6 100644 --- a/man/assert_list_element.Rd +++ b/man/assert_list_element.Rd @@ -72,16 +72,16 @@ condition. If not, an error is issued and all elements of the list not fulfilling the condition are listed. } \examples{ + death <- list( dataset_name = "adsl", - filter = expr(DTHFL == "Y"), - date = expr(DTHDT), + date = "DTHDT", censor = 0 ) lstalv <- list( dataset_name = "adsl", - date = expr(LSTALVDT), + date = "LSTALVDT", censor = 1 )