Skip to content

Commit 6d38745

Browse files
committed
change to rlang
1 parent 0ea4a64 commit 6d38745

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

DESCRIPTION

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ Imports:
3535
utils
3636
Suggests:
3737
cli (>= 3.4.0),
38-
data.table (>= 1.16.2),
3938
knitr (>= 1.42),
4039
rmarkdown (>= 2.23),
4140
shiny (>= 1.6.0),
@@ -48,7 +47,7 @@ RdMacros:
4847
lifecycle
4948
Config/Needs/verdepcheck: mllg/checkmate, r-lib/lifecycle, r-lib/rlang,
5049
r-lib/cli, yihui/knitr, rstudio/rmarkdown, rstudio/shiny,
51-
r-lib/testthat, r-lib/withr, Rdatatable/data.table
50+
r-lib/testthat, r-lib/withr
5251
Config/Needs/website: insightsengineering/nesttemplate
5352
Encoding: UTF-8
5453
Language: en-US

tests/testthat/test-qenv_eval_code.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,9 @@ testthat::test_that("eval_code accepts calls containing only comments and empty
106106
})
107107

108108
testthat::test_that("eval_code does not treat := as an assignment operator", {
109-
testthat::skip_if_not_installed("data.table")
110109
code <- "
111-
iris <- data.table::data.table(iris) %>%
112-
.[, NewSpecies := factor(Species)]
110+
x <- 'name'
111+
rlang::list2(!!x := 1)
113112
"
114113
q <- eval_code(qenv(), code)
115114
testthat::expect_identical(get_code(q), code)

0 commit comments

Comments
 (0)