Skip to content

Commit 2a0f49b

Browse files
committed
names warning on subset
1 parent 0cc2351 commit 2a0f49b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/qenv-extract.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
if (length(names_missing)) {
2626
warning(
2727
sprintf(
28-
"Some elements of 'names' do not exist in the environment of the '%s'. Skipping those: %s.",
28+
"Some 'names' do not exist in the environment of the '%s'. Skipping those: %s.",
2929
class(x)[1],
3030
paste(names_missing, collapse = ", ")
3131
)

tests/testthat/test-qenv_extract.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ testthat::test_that("`[.` warns and subsets to existing if some names not presen
3333
})
3434
testthat::expect_warning(
3535
testthat::expect_equal(data[c("b", "c", "d")], data["b"]),
36-
"Some elements of 'names' do not exist in the environment of the 'qenv'. Skipping those: c, d."
36+
"Some 'names' do not exist in the environment of the 'qenv'. Skipping those: c, d."
3737
)
3838
testthat::expect_warning(
3939
testthat::expect_equal(data[c("b", "c", "d")], data["b"]),

0 commit comments

Comments
 (0)