@@ -22,6 +22,7 @@ tar_test("target_run() on a good builder", {
2222})
2323
2424tar_test(" target_run() on a errored builder" , {
25+ skip_cran()
2526 tar_option_set(envir = tmpenv())
2627 local_init(pipeline_init())$ start()
2728 x <- target_init(name = " abc" , expr = quote(identity(identity(stop(123 )))))
@@ -37,6 +38,7 @@ tar_test("target_run() on a errored builder", {
3738})
3839
3940tar_test(" target_run_worker()" , {
41+ skip_cran()
4042 local_init(pipeline_init())$ start()
4143 x <- target_init(name = " abc" , expr = quote(identity(identity(stop(123 )))))
4244 y <- target_run_worker(
@@ -84,6 +86,7 @@ tar_test("read and write objects", {
8486})
8587
8688tar_test(" error = \" stop\" means stop on error" , {
89+ skip_cran()
8790 x <- target_init(" x" , expr = quote(stop(123 )), error = " stop" )
8891 y <- target_init(" y" , expr = quote(stop(456 )), error = " stop" )
8992 pipeline <- pipeline_init(list (x , y ))
@@ -96,6 +99,7 @@ tar_test("error = \"stop\" means stop on error", {
9699})
97100
98101tar_test(" error = \" continue\" means continue on error" , {
102+ skip_cran()
99103 x <- target_init(" x" , expr = quote(stop(123 )), error = " continue" )
100104 y <- target_init(" y" , expr = quote(stop(456 )), error = " continue" )
101105 pipeline <- pipeline_init(list (x , y ))
@@ -114,6 +118,7 @@ tar_test("error = \"continue\" means continue on error", {
114118})
115119
116120tar_test(" error = \" abridge\" means do not schedule new targets" , {
121+ skip_cran()
117122 x <- target_init(" x" , expr = quote(stop(123 )), error = " abridge" )
118123 y <- target_init(" y" , expr = quote(x ))
119124 pipeline <- pipeline_init(list (x , y ))
@@ -125,6 +130,7 @@ tar_test("error = \"abridge\" means do not schedule new targets", {
125130})
126131
127132tar_test(" errored targets are not up to date" , {
133+ skip_cran()
128134 x <- target_init(" x" , expr = quote(123 ))
129135 pipeline <- pipeline_init(list (x ))
130136 local_init(pipeline )$ run()
@@ -139,6 +145,7 @@ tar_test("errored targets are not up to date", {
139145})
140146
141147tar_test(" same if we continue on error" , {
148+ skip_cran()
142149 x <- target_init(" x" , expr = quote(123 ))
143150 pipeline <- pipeline_init(list (x ))
144151 local_init(pipeline )$ run()
@@ -154,6 +161,7 @@ tar_test("same if we continue on error", {
154161})
155162
156163tar_test(" builder writing from main" , {
164+ skip_cran()
157165 tar_option_set(envir = tmpenv(a = " 123" ))
158166 local_init(pipeline_init())$ start()
159167 x <- target_init(" abc" , expr = quote(a ), format = " rds" , storage = " main" )
@@ -174,6 +182,7 @@ tar_test("builder writing from main", {
174182})
175183
176184tar_test(" builder writing from worker" , {
185+ skip_cran()
177186 tar_option_set(envir = tmpenv(a = " 123" ))
178187 local_init(pipeline_init())$ start()
179188 x <- target_init(
@@ -198,6 +207,7 @@ tar_test("builder writing from worker", {
198207})
199208
200209tar_test(" retrieval = \" none\" " , {
210+ skip_cran()
201211 skip_cran()
202212 tar_script({
203213 list (
@@ -218,6 +228,7 @@ tar_test("storage = \"none\" errors if user does not write storage", {
218228})
219229
220230tar_test(" storage = \" none\" ignores return value but tracks file" , {
231+ skip_cran()
221232 tar_script({
222233 run_x <- function () {
223234 if (! file.exists(" _targets/objects" )) {
@@ -276,6 +287,7 @@ tar_test("storage = \"none\" ignores return value but tracks file", {
276287})
277288
278289tar_test(" dynamic file writing from main" , {
290+ skip_cran()
279291 local_init(pipeline_init())$ start()
280292 envir <- new.env(parent = environment())
281293 tar_option_set(envir = envir )
@@ -301,6 +313,7 @@ tar_test("dynamic file writing from main", {
301313})
302314
303315tar_test(" dynamic file has illegal path" , {
316+ skip_cran()
304317 x <- target_init(
305318 name = " abc" ,
306319 expr = quote(" a*b" ),
@@ -311,6 +324,7 @@ tar_test("dynamic file has illegal path", {
311324})
312325
313326tar_test(" dynamic file has empty path" , {
327+ skip_cran()
314328 x <- target_init(
315329 name = " abc" ,
316330 expr = quote(NULL ),
@@ -321,6 +335,7 @@ tar_test("dynamic file has empty path", {
321335})
322336
323337tar_test(" dynamic file has missing path value" , {
338+ skip_cran()
324339 x <- target_init(
325340 name = " abc" ,
326341 expr = quote(NA_character_ ),
@@ -331,6 +346,7 @@ tar_test("dynamic file has missing path value", {
331346})
332347
333348tar_test(" dynamic file is missing at path" , {
349+ skip_cran()
334350 x <- target_init(
335351 name = " abc" ,
336352 expr = quote(" nope" ),
@@ -342,6 +358,7 @@ tar_test("dynamic file is missing at path", {
342358})
343359
344360tar_test(" dynamic file writing from worker" , {
361+ skip_cran()
345362 local_init(pipeline_init())$ start()
346363 envir <- new.env(parent = environment())
347364 tar_option_set(envir = envir )
@@ -369,6 +386,7 @@ tar_test("dynamic file writing from worker", {
369386})
370387
371388tar_test(" value kept if storage is local" , {
389+ skip_cran()
372390 local_init(pipeline_init())$ start()
373391 envir <- new.env(parent = environment())
374392 tar_option_set(envir = envir )
@@ -417,6 +435,7 @@ tar_test("basic progress responses are correct", {
417435})
418436
419437tar_test(" builders load their packages" , {
438+ skip_cran()
420439 x <- target_init(
421440 " x" ,
422441 quote(tibble(x = " x" )),
@@ -432,6 +451,7 @@ tar_test("builders load their packages", {
432451})
433452
434453tar_test(" relay errors as messages if error is continue" , {
454+ skip_cran()
435455 tar_script({
436456 tar_option_set(error = " continue" )
437457 list (
@@ -453,13 +473,15 @@ tar_test("relay errors as messages if error is continue", {
453473})
454474
455475tar_test(" target_needs_worker(builder)" , {
476+ skip_cran()
456477 x <- tar_target(y , rep(x , 2 ), deployment = " worker" )
457478 expect_true(target_needs_worker(x ))
458479 x <- tar_target(y , rep(x , 2 ), deployment = " main" )
459480 expect_false(target_needs_worker(x ))
460481})
461482
462483tar_test(" bootstrap builder for shortcut" , {
484+ skip_cran()
463485 tar_script({
464486 list (
465487 tar_target(w , 1L ),
@@ -503,6 +525,7 @@ tar_test("informative error when bootstrap fails", {
503525})
504526
505527tar_test(" validate with nonmissing file and value" , {
528+ skip_cran()
506529 x <- target_init(name = " abc" , expr = quote(1L + 1L ))
507530 x $ value <- value_init(123 )
508531 file <- x $ store $ file
0 commit comments