diff --git a/R/inflate_all.R b/R/inflate_all.R index 218c9c6..649e55e 100644 --- a/R/inflate_all.R +++ b/R/inflate_all.R @@ -162,6 +162,7 @@ inflate_all <- function( flat_file$document <- FALSE flat_file$check <- FALSE flat_file$update_params <- FALSE + flat_file$codecov <- FALSE suppressMessages(do.call(inflate, flat_file)) }) ) diff --git a/dev/flat_inflate_all.Rmd b/dev/flat_inflate_all.Rmd index baf4528..13ec0f8 100644 --- a/dev/flat_inflate_all.Rmd +++ b/dev/flat_inflate_all.Rmd @@ -166,6 +166,7 @@ inflate_all <- function( flat_file$document <- FALSE flat_file$check <- FALSE flat_file$update_params <- FALSE + flat_file$codecov <- FALSE suppressMessages(do.call(inflate, flat_file)) }) ) @@ -830,7 +831,8 @@ usethis::with_project(dummypackage, { names(config_content[["flat_full.Rmd"]][["inflate"]]), c( "flat_file", "vignette_name", "open_vignette", - "check", "document", "overwrite", "clean" + "check", "document", "overwrite", "clean", + "codecov" ) ) }) @@ -880,7 +882,8 @@ usethis::with_project(dummypackage, { names(config_content[["flat_full.Rmd"]][["inflate"]]), c( "flat_file", "vignette_name", "open_vignette", - "check", "document", "overwrite", "clean" + "check", "document", "overwrite", "clean", + "codecov" ) ) expect_true(is.na(config_content[["flat_full.Rmd"]][["inflate"]][["vignette_name"]])) @@ -943,6 +946,7 @@ usethis::with_project(dummypackage, { ) }) }) +unlink(dummypackage, recursive = TRUE) ``` ```{r development-inflate, eval=FALSE} diff --git a/dev/flat_inflate_all_utils.Rmd b/dev/flat_inflate_all_utils.Rmd index 68d9b40..2584881 100644 --- a/dev/flat_inflate_all_utils.Rmd +++ b/dev/flat_inflate_all_utils.Rmd @@ -807,7 +807,8 @@ usethis::with_project(dummypackage, { check = FALSE, document = TRUE, overwrite = "ask", - clean = "ask" + clean = "ask", + codecov = FALSE ) ) @@ -820,7 +821,8 @@ usethis::with_project(dummypackage, { check = FALSE, document = TRUE, overwrite = "ask", - clean = "ask" + clean = "ask", + codecov = FALSE ) ) }) diff --git a/tests/testthat/test-inflate_all.R b/tests/testthat/test-inflate_all.R index d0feed4..cf0b623 100644 --- a/tests/testthat/test-inflate_all.R +++ b/tests/testthat/test-inflate_all.R @@ -560,7 +560,8 @@ usethis::with_project(dummypackage, { names(config_content[["flat_full.Rmd"]][["inflate"]]), c( "flat_file", "vignette_name", "open_vignette", - "check", "document", "overwrite", "clean" + "check", "document", "overwrite", "clean", + "codecov" ) ) }) @@ -610,7 +611,8 @@ usethis::with_project(dummypackage, { names(config_content[["flat_full.Rmd"]][["inflate"]]), c( "flat_file", "vignette_name", "open_vignette", - "check", "document", "overwrite", "clean" + "check", "document", "overwrite", "clean", + "codecov" ) ) expect_true(is.na(config_content[["flat_full.Rmd"]][["inflate"]][["vignette_name"]])) @@ -673,3 +675,4 @@ usethis::with_project(dummypackage, { ) }) }) +unlink(dummypackage, recursive = TRUE) diff --git a/tests/testthat/test-inflate_all_utils.R b/tests/testthat/test-inflate_all_utils.R index d787c77..0f45030 100644 --- a/tests/testthat/test-inflate_all_utils.R +++ b/tests/testthat/test-inflate_all_utils.R @@ -444,7 +444,8 @@ usethis::with_project(dummypackage, { check = FALSE, document = TRUE, overwrite = "ask", - clean = "ask" + clean = "ask", + codecov = FALSE ) ) @@ -457,7 +458,8 @@ usethis::with_project(dummypackage, { check = FALSE, document = TRUE, overwrite = "ask", - clean = "ask" + clean = "ask", + codecov = FALSE ) ) })