We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 620849b commit 1e25681Copy full SHA for 1e25681
tests/testthat/test-qenv_eval_code.R
@@ -15,16 +15,6 @@ testthat::test_that("eval_code doesn't have access to environment where it's cal
15
)
16
})
17
18
-testthat::test_that("@.xData in qenv is always a sibling of .GlobalEnv", {
19
- q1 <- qenv()
20
- testthat::expect_identical(parent.env(q1@.xData), parent.env(.GlobalEnv))
21
-
22
- q2 <- eval_code(q1, quote(a <- 1L))
23
- testthat::expect_identical(parent.env(q2@.xData), parent.env(.GlobalEnv))
24
- q3 <- eval_code(q2, quote(b <- 2L))
25
- testthat::expect_identical(parent.env(q3@.xData), parent.env(.GlobalEnv))
26
-})
27
28
testthat::test_that("getting object from the package namespace works even if library in the same call", {
29
testthat::expect_s4_class(
30
eval_code(
0 commit comments