1
1
test_that(" Error check" , {
2
+ skip_on_cran()
2
3
as_tbl <- data.frame (
3
4
x = 1 : 10 ,
4
5
y = 1 : 10
@@ -16,6 +17,7 @@ test_that("Error check", {
16
17
17
18
18
19
test_that(" Handle NAs" , {
20
+ skip_on_cran()
19
21
as_tbl <- data.frame (
20
22
x = 1 : 10 ,
21
23
y = 1 : 10 ,
@@ -44,6 +46,7 @@ test_that("Handle NAs", {
44
46
45
47
46
48
test_that(" Regenerate vector properly with WKT" , {
49
+ skip_on_cran()
47
50
f <- system.file(" extdata/cyl.gpkg" , package = " tidyterra" )
48
51
v <- terra :: vect(f )
49
52
@@ -87,6 +90,7 @@ test_that("Regenerate vector properly with WKT", {
87
90
})
88
91
89
92
test_that(" Regenerate vector properly with lon,lat" , {
93
+ skip_on_cran()
90
94
f <- system.file(" extdata/cyl.gpkg" , package = " tidyterra" )
91
95
v <- terra :: vect(f )
92
96
v <- terra :: centroids(v )
@@ -130,6 +134,7 @@ test_that("Regenerate vector properly with lon,lat", {
130
134
})
131
135
132
136
test_that(" Works with grouped_df" , {
137
+ skip_on_cran()
133
138
as_tbl <- data.frame (
134
139
x = as.double(1 : 10 ),
135
140
y = as.double(1 : 10 ),
@@ -155,6 +160,7 @@ test_that("Works with grouped_df", {
155
160
})
156
161
157
162
test_that(" Works with rowwise_df" , {
163
+ skip_on_cran()
158
164
as_tbl <- data.frame (
159
165
x = as.double(1 : 10 ),
160
166
y = as.double(1 : 10 ),
@@ -180,6 +186,7 @@ test_that("Works with rowwise_df", {
180
186
})
181
187
182
188
test_that(" Works with unnamed rowwise_df" , {
189
+ skip_on_cran()
183
190
as_tbl <- data.frame (
184
191
x = as.double(1 : 10 ),
185
192
y = as.double(1 : 10 ),
@@ -205,6 +212,7 @@ test_that("Works with unnamed rowwise_df", {
205
212
})
206
213
test_that(" Works with sf" , {
207
214
skip_on_cran()
215
+ skip_on_cran()
208
216
209
217
sfobj <- sf :: read_sf(system.file(" extdata/cyl.gpkg" , package = " tidyterra" ))
210
218
@@ -248,6 +256,7 @@ test_that("Works with sf", {
248
256
})
249
257
250
258
test_that(" Check sfc" , {
259
+ skip_on_cran()
251
260
sfobj <- sf :: read_sf(system.file(" extdata/cyl.gpkg" , package = " tidyterra" ))
252
261
sfobj <- sf :: st_geometry(sfobj )
253
262
expect_s3_class(sfobj , " sfc" )
@@ -258,6 +267,7 @@ test_that("Check sfc", {
258
267
})
259
268
260
269
test_that(" Check sf with crs null" , {
270
+ skip_on_cran()
261
271
sfobj <- sf :: st_point(c(0 , 0 ))
262
272
sfobj <- sf :: st_sfc(sfobj )
263
273
@@ -269,6 +279,7 @@ test_that("Check sf with crs null", {
269
279
})
270
280
271
281
test_that(" Check sf with empty geoms: POLYGONS" , {
282
+ skip_on_cran()
272
283
sfobj <- sf :: read_sf(system.file(" extdata/cyl.gpkg" , package = " tidyterra" ))
273
284
274
285
sfobj <- dplyr :: bind_rows(sfobj , data.frame (a = 1 ))
@@ -286,6 +297,7 @@ test_that("Check sf with empty geoms: POLYGONS", {
286
297
})
287
298
288
299
test_that(" Check sf with empty geoms: LINESTRINGS" , {
300
+ skip_on_cran()
289
301
sfobj <- sf :: read_sf(system.file(" extdata/cyl.gpkg" , package = " tidyterra" ))
290
302
291
303
sfobj <- sf :: st_cast(sfobj , " MULTILINESTRING" , warn = FALSE )
@@ -304,6 +316,7 @@ test_that("Check sf with empty geoms: LINESTRINGS", {
304
316
})
305
317
306
318
test_that(" Check sf with empty geoms: POINTS" , {
319
+ skip_on_cran()
307
320
sfobj <- sf :: read_sf(system.file(" extdata/cyl.gpkg" , package = " tidyterra" ))
308
321
309
322
sfobj <- sf :: st_cast(sfobj [1 : 2 , ], " MULTIPOINT" , warn = FALSE )
@@ -322,6 +335,7 @@ test_that("Check sf with empty geoms: POINTS", {
322
335
})
323
336
324
337
test_that(" Check internal" , {
338
+ skip_on_cran()
325
339
f <- system.file(" extdata/cyl.gpkg" , package = " tidyterra" )
326
340
v <- terra :: vect(f )
327
341
@@ -360,6 +374,7 @@ test_that("Check internal", {
360
374
361
375
362
376
test_that(" Check internal grouped" , {
377
+ skip_on_cran()
363
378
f <- system.file(" extdata/cyl.gpkg" , package = " tidyterra" )
364
379
v <- terra :: vect(f )
365
380
@@ -391,6 +406,7 @@ test_that("Check internal grouped", {
391
406
})
392
407
393
408
test_that(" Check internal rowwise" , {
409
+ skip_on_cran()
394
410
f <- system.file(" extdata/cyl.gpkg" , package = " tidyterra" )
395
411
v <- terra :: vect(f )
396
412
@@ -423,6 +439,7 @@ test_that("Check internal rowwise", {
423
439
424
440
425
441
test_that(" Check internal NULL: POLYGONS" , {
442
+ skip_on_cran()
426
443
f <- system.file(" extdata/cyl.gpkg" , package = " tidyterra" )
427
444
v <- terra :: vect(f )
428
445
@@ -480,6 +497,7 @@ test_that("Check internal NULL: POLYGONS", {
480
497
481
498
482
499
test_that(" Check internal NULL: LINES" , {
500
+ skip_on_cran()
483
501
f <- system.file(" extdata/cyl.gpkg" , package = " tidyterra" )
484
502
v <- terra :: vect(f )
485
503
@@ -537,6 +555,7 @@ test_that("Check internal NULL: LINES", {
537
555
538
556
539
557
test_that(" Check internal NULL: POINTS" , {
558
+ skip_on_cran()
540
559
f <- system.file(" extdata/cyl.gpkg" , package = " tidyterra" )
541
560
v <- terra :: vect(f )
542
561
@@ -598,6 +617,7 @@ test_that("Check internal NULL: POINTS", {
598
617
599
618
600
619
test_that(" Keep group with NULL" , {
620
+ skip_on_cran()
601
621
f <- system.file(" extdata/cyl.gpkg" , package = " tidyterra" )
602
622
v <- sf :: read_sf(f )
603
623
v $ gr <- rep_len(c(" A" , " B" , " C" , " D" ), length.out = nrow(v ))
0 commit comments