Skip to content

Commit 503ff60

Browse files
committed
ENH: 9.
1 parent aec773d commit 503ff60

File tree

6 files changed

+5
-27
lines changed

6 files changed

+5
-27
lines changed

tests/testthat/test_brain.R

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# test_that("deepAtropos runs with default input", {
2-
# skip_on_cran()
3-
# skip_if_not_installed("ANTsRNet")
2+
# # skip_if_not_installed("ANTsRNet")
43
# skip_if_not_installed("ANTsR")
54
# library(ANTsRNet); library(ANTsR)
65

@@ -12,8 +11,7 @@
1211
# })
1312

1413
# test_that("deepAtropos accepts list input with NULLs", {
15-
# skip_on_cran()
16-
# skip_if_not_installed("ANTsRNet")
14+
# # skip_if_not_installed("ANTsRNet")
1715
# skip_if_not_installed("ANTsR")
1816
# library(ANTsRNet); library(ANTsR)
1917

@@ -25,8 +23,7 @@
2523
# })
2624

2725
# test_that("DKT labeling versions 0 and 1 work", {
28-
# skip_on_cran()
29-
# skip_if_not_installed("ANTsRNet")
26+
# # skip_if_not_installed("ANTsRNet")
3027
# skip_if_not_installed("ANTsR")
3128
# library(ANTsRNet); library(ANTsR)
3229

@@ -39,8 +36,7 @@
3936
# })
4037

4138
# test_that("Harvard-Oxford Atlas labeling works", {
42-
# skip_on_cran()
43-
# skip_if_not_installed("ANTsRNet")
39+
# # skip_if_not_installed("ANTsRNet")
4440
# skip_if_not_installed("ANTsR")
4541
# library(ANTsRNet); library(ANTsR)
4642

@@ -49,7 +45,6 @@
4945
# })
5046

5147
test_that("deepFlash returns expected segmentation", {
52-
skip_on_cran()
5348
skip_if_not_installed("ANTsRNet")
5449
skip_if_not_installed("ANTsR")
5550
library(ANTsRNet); library(ANTsR)
@@ -60,7 +55,6 @@ test_that("deepFlash returns expected segmentation", {
6055
})
6156

6257
test_that("claustrum segmentation runs", {
63-
skip_on_cran()
6458
skip_if_not_installed("ANTsRNet")
6559
skip_if_not_installed("ANTsR")
6660
library(ANTsRNet); library(ANTsR)

tests/testthat/test_brainExtraction.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
test_that("brainExtraction runs correctly across modalities", {
2-
skip_on_cran() # avoid download on CRAN
32
skip_if_not_installed("ANTsRNet")
43
skip_if_not_installed("ANTsR")
54

tests/testthat/test_generalApplications.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
test_that("MRI super-resolution runs and returns antsImage", {
2-
skip_on_cran()
32
skip_if_not_installed("ANTsRNet")
43
skip_if_not_installed("ANTsR")
54

@@ -13,7 +12,6 @@ test_that("MRI super-resolution runs and returns antsImage", {
1312
})
1413

1514
test_that("T1w neural image QA returns numeric score", {
16-
skip_on_cran()
1715
skip_if_not_installed("ANTsRNet")
1816
skip_if_not_installed("ANTsR")
1917

@@ -26,7 +24,6 @@ test_that("T1w neural image QA returns numeric score", {
2624
})
2725

2826
test_that("PSNR and SSIM return valid similarity values", {
29-
skip_on_cran()
3027
skip_if_not_installed("ANTsRNet")
3128
skip_if_not_installed("ANTsR")
3229

tests/testthat/test_lungs.R

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ download_with_user_agent <- function(url, destfile) {
77
}
88

99
# test_that("lungExtraction works with CT modality", {
10-
# skip_on_cran()
11-
# skip_if_not_installed("ANTsRNet")
10+
# # skip_if_not_installed("ANTsRNet")
1211
# skip_if_not_installed("ANTsR")
1312
# library(ANTsRNet); library(ANTsR)
1413

@@ -21,7 +20,6 @@ download_with_user_agent <- function(url, destfile) {
2120
# })
2221

2322
test_that("lungExtraction works with proton and derived masks", {
24-
skip_on_cran()
2523
skip_if_not_installed("ANTsRNet")
2624
skip_if_not_installed("ANTsR")
2725
library(ANTsRNet); library(ANTsR)
@@ -41,7 +39,6 @@ test_that("lungExtraction works with proton and derived masks", {
4139
})
4240

4341
test_that("lungExtraction works with X-ray (CXR) input", {
44-
skip_on_cran()
4542
skip_if_not_installed("ANTsRNet")
4643
skip_if_not_installed("ANTsR")
4744
library(ANTsRNet); library(ANTsR)
@@ -55,7 +52,6 @@ test_that("lungExtraction works with X-ray (CXR) input", {
5552
})
5653

5754
test_that("lungExtraction works with ventilation images", {
58-
skip_on_cran()
5955
skip_if_not_installed("ANTsRNet")
6056
skip_if_not_installed("ANTsR")
6157
library(ANTsRNet); library(ANTsR)
@@ -69,7 +65,6 @@ test_that("lungExtraction works with ventilation images", {
6965
})
7066

7167
test_that("elBicho runs on ventilation + mask", {
72-
skip_on_cran()
7368
skip_if_not_installed("ANTsRNet")
7469
skip_if_not_installed("ANTsR")
7570
library(ANTsRNet); library(ANTsR)
@@ -89,7 +84,6 @@ test_that("elBicho runs on ventilation + mask", {
8984
})
9085

9186
test_that("chexNet returns prediction scores with/without TB", {
92-
skip_on_cran()
9387
skip_if_not_installed("ANTsRNet")
9488
skip_if_not_installed("ANTsR")
9589
library(ANTsRNet); library(ANTsR)

tests/testthat/test_mouse.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ download_with_user_agent <- function(url, destfile) {
77
}
88

99
test_that("mouse brain extraction (T2) runs correctly", {
10-
skip_on_cran()
1110
skip_if_not_installed("ANTsRNet")
1211
skip_if_not_installed("ANTsR")
1312
library(ANTsRNet); library(ANTsR)
@@ -27,7 +26,6 @@ test_that("mouse brain extraction (T2) runs correctly", {
2726
})
2827

2928
test_that("mouse brain parcellation (nick and tct) works", {
30-
skip_on_cran()
3129
skip_if_not_installed("ANTsRNet")
3230
skip_if_not_installed("ANTsR")
3331
library(ANTsRNet); library(ANTsR)

tests/testthat/test_wmhPvs.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ download_with_user_agent <- function(url, destfile) {
77
}
88

99
test_that("SYSU Media WMH segmentation runs", {
10-
skip_on_cran()
1110
skip_if_not_installed("ANTsRNet")
1211
skip_if_not_installed("ANTsR")
1312
library(ANTsR); library(ANTsRNet)
@@ -25,7 +24,6 @@ test_that("SYSU Media WMH segmentation runs", {
2524
})
2625

2726
test_that("Hypermapp3r WMH segmentation runs", {
28-
skip_on_cran()
2927
skip_if_not_installed("ANTsRNet")
3028
skip_if_not_installed("ANTsR")
3129
library(ANTsR); library(ANTsRNet)
@@ -43,7 +41,6 @@ test_that("Hypermapp3r WMH segmentation runs", {
4341
})
4442

4543
test_that("SHIVA WMH segmentation runs with all models", {
46-
skip_on_cran()
4744
skip_if_not_installed("ANTsRNet")
4845
skip_if_not_installed("ANTsR")
4946
library(ANTsR); library(ANTsRNet)
@@ -61,7 +58,6 @@ test_that("SHIVA WMH segmentation runs with all models", {
6158
})
6259

6360
test_that("SHIVA PVS segmentation runs with all models", {
64-
skip_on_cran()
6561
skip_if_not_installed("ANTsRNet")
6662
skip_if_not_installed("ANTsR")
6763
library(ANTsR); library(ANTsRNet)

0 commit comments

Comments
 (0)