You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/testthat/test-smk-ds.subset.R
+18-12Lines changed: 18 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -26,51 +26,57 @@ test_that("setup", {
26
26
#
27
27
28
28
# context("ds.subset::smk::generate a subset of the assigned table (by default the table is named 'D') with the first 50 observations and the two first columns")
expect_warning(ds.subset(datasources=ds.test_env$connections, subset='subD', x='D', rows=c(1:50), cols=c(1,2)), "'ds.subset' is deprecated.", fixed=TRUE)
31
+
32
+
res<- ds.exists('subD')
33
+
32
34
expect_length(res, 3)
33
35
expect_true(res$sim1)
34
36
expect_true(res$sim2)
35
37
expect_true(res$sim3)
36
38
})
37
39
38
40
# context("ds.subset::smk::generate a subset of the assigned table (by default the table is named 'D') with the first 50 observations and the two first columns referred to by their names")
expect_warning(ds.subset(datasources=ds.test_env$connections, subset='subD3', x='D', logical='PM_BMI_CONTINUOUS>=', threshold=25), "'ds.subset' is deprecated.", fixed=TRUE)
55
+
56
+
res<- ds.exists('subD3')
57
+
52
58
expect_length(res, 3)
53
59
expect_true(res$sim1)
54
60
expect_true(res$sim2)
55
61
expect_true(res$sim3)
56
62
})
57
63
58
64
# context("ds.subset::smk::get the logarithmic values of the variable 'lab_hdl' and generate a subset with the first 50 observations of that new vector.")
# context("ds.subset::smk::get the variable 'PM_BMI_CONTINUOUS' from the dataframe 'D' and generate a subset bmi vector with bmi values greater than or equal to 25")
0 commit comments