1
1
context(" Genlight construction" )
2
2
3
3
test_that(" Genlight objects can be created predictably" , {
4
- expect_warning(a <- new(" genlight" , list (c(1 ,0 ,1 ), c(0 ,0 ,1 ,0 )) ))
5
- expect_warning(b <- new(" genlight" , list (c(1 ,0 ,1 ,1 ,1 ,1 ), c(1 ,0 )) ))
4
+ skip_on_cran()
5
+ expect_warning(a <- new(" genlight" , list (c(1 ,0 ,1 ), c(0 ,0 ,1 ,0 )), parallel = FALSE ))
6
+ expect_warning(b <- new(" genlight" , list (c(1 ,0 ,1 ,1 ,1 ,1 ), c(1 ,0 )), parallel = FALSE ))
6
7
locNames(a ) <- letters [1 : 4 ]
7
8
locNames(b ) <- 1 : 6
8
9
c <- cbind(a , b )
@@ -14,7 +15,8 @@ test_that("Genlight objects can be created predictably", {
14
15
15
16
16
17
test_that(" subsetting with/without @other works" , {
17
- x <- new(" genlight" , list (a = 1 ,b = 0 ,c = 1 ), other = list (1 : 3 , letters , data.frame (2 : 4 )))
18
+ skip_on_cran()
19
+ x <- new(" genlight" , list (a = 1 ,b = 0 ,c = 1 ), other = list (1 : 3 , letters , data.frame (2 : 4 )), parallel = FALSE )
18
20
pop(x ) <- c(" pop1" ," pop1" , " pop2" )
19
21
expect_that(x [1 : 2 , ]@ other [[1 ]], equals(1 : 2 ))
20
22
expect_that(x [1 : 2 , ]@ other [[2 ]], equals(letters ))
0 commit comments