@@ -10,6 +10,7 @@ test_that("exposure data 1", {
1010})
1111
1212test_that(" exposure data 2" , {
13+ skip_if(Sys.getenv(' TWOSAMPLEMR_ENABLE_OPENGWAS_TESTS' ) != TRUE , " Tests requiring OpenGWAS" )
1314 skip_if_offline()
1415 skip_if_offline(host = " api.opengwas.io" )
1516 skip_on_cran()
@@ -23,6 +24,7 @@ test_that("exposure data 2", {
2324exposure <- exp_dat [1 : 5 ,]
2425
2526test_that(" outcome data 1" , {
27+ skip_if(Sys.getenv(' TWOSAMPLEMR_ENABLE_OPENGWAS_TESTS' ) != TRUE , " Tests requiring OpenGWAS" )
2628 skip_if_offline()
2729 skip_if_offline(host = " api.opengwas.io" )
2830 skip_on_cran()
@@ -36,6 +38,7 @@ test_that("outcome data 1", {
3638})
3739
3840test_that(" outcome data 2" , {
41+ skip_if(Sys.getenv(' TWOSAMPLEMR_ENABLE_OPENGWAS_TESTS' ) != TRUE , " Tests requiring OpenGWAS" )
3942 skip_if_offline()
4043 skip_if_offline(host = " api.opengwas.io" )
4144 skip_on_cran()
@@ -49,6 +52,7 @@ test_that("outcome data 2", {
4952})
5053
5154test_that(" dat 2" , {
55+ skip_if(Sys.getenv(' TWOSAMPLEMR_ENABLE_OPENGWAS_TESTS' ) != TRUE , " Tests requiring OpenGWAS" )
5256 skip_if_offline()
5357 skip_if_offline(host = " api.opengwas.io" )
5458 skip_on_cran()
@@ -60,6 +64,7 @@ test_that("dat 2", {
6064})
6165
6266test_that(" dat ukb-d" , {
67+ skip_if(Sys.getenv(' TWOSAMPLEMR_ENABLE_OPENGWAS_TESTS' ) != TRUE , " Tests requiring OpenGWAS" )
6368 skip_if_offline()
6469 skip_if_offline(host = " api.opengwas.io" )
6570 skip_on_cran()
@@ -77,6 +82,7 @@ test_that("effective n", {
7782})
7883
7984test_that(" get_population_allele_frequency" , {
85+ skip_if(Sys.getenv(' TWOSAMPLEMR_ENABLE_OPENGWAS_TESTS' ) != TRUE , " Tests requiring OpenGWAS" )
8086 skip_if_offline()
8187 skip_if_offline(host = " api.opengwas.io" )
8288 skip_on_cran()
@@ -94,6 +100,7 @@ test_that("get_population_allele_frequency", {
94100})
95101
96102test_that(" bbj-a-1" , {
103+ skip_if(Sys.getenv(' TWOSAMPLEMR_ENABLE_OPENGWAS_TESTS' ) != TRUE , " Tests requiring OpenGWAS" )
97104 skip_on_cran()
98105 skip_if_offline()
99106 skip_if_offline(host = " api.opengwas.io" )
@@ -105,6 +112,7 @@ test_that("bbj-a-1", {
105112})
106113
107114test_that(" bsen vs pn" , {
115+ skip_if(Sys.getenv(' TWOSAMPLEMR_ENABLE_OPENGWAS_TESTS' ) != TRUE , " Tests requiring OpenGWAS" )
108116 skip_if_offline()
109117 skip_if_offline(host = " api.opengwas.io" )
110118 skip_on_cran()
0 commit comments