@@ -11,7 +11,7 @@ source("helpers.R")
1111# ------------------------------------------------------------------------------
1212
1313test_that(' primary arguments' , {
14- withr :: local_options(lifecycle_verbosity = " quiet" )
14+ rlang :: local_options(lifecycle_verbosity = " quiet" )
1515
1616 basic <- surv_reg()
1717 basic_flexsurv <- translate(basic %> % set_engine(" flexsurv" ))
@@ -48,7 +48,7 @@ test_that('primary arguments', {
4848})
4949
5050test_that(' engine arguments' , {
51- withr :: local_options(lifecycle_verbosity = " quiet" )
51+ rlang :: local_options(lifecycle_verbosity = " quiet" )
5252
5353 fs_cl <- surv_reg()
5454 expect_equal(translate(fs_cl %> % set_engine(" flexsurv" , cl = .99 ))$ method $ fit $ args ,
@@ -64,7 +64,7 @@ test_that('engine arguments', {
6464
6565
6666test_that(' updating' , {
67- withr :: local_options(lifecycle_verbosity = " quiet" )
67+ rlang :: local_options(lifecycle_verbosity = " quiet" )
6868
6969 expr1 <- surv_reg() %> % set_engine(" flexsurv" , cl = varying())
7070 expr1_exp <- surv_reg(dist = " lnorm" ) %> % set_engine(" flexsurv" , cl = .99 )
@@ -81,14 +81,14 @@ test_that('updating', {
8181})
8282
8383test_that(' bad input' , {
84- withr :: local_options(lifecycle_verbosity = " quiet" )
84+ rlang :: local_options(lifecycle_verbosity = " quiet" )
8585
8686 expect_error(surv_reg(mode = " , classification" ))
8787 expect_error(translate(surv_reg() %> % set_engine(" wat" )))
8888 expect_error(translate(surv_reg() %> % set_engine(NULL )))
8989})
9090
9191test_that(" deprecation warning" , {
92- withr :: local_options(lifecycle_verbosity = " warning" )
92+ rlang :: local_options(lifecycle_verbosity = " warning" )
9393 expect_warning(surv_reg())
9494})
0 commit comments