diff --git a/tests/dev/gen_roxygen_tests.R b/tests/dev/generate_roxygen_tests.R similarity index 87% rename from tests/dev/gen_roxygen_tests.R rename to tests/dev/generate_roxygen_tests.R index d260e4797..27a47e123 100755 --- a/tests/dev/gen_roxygen_tests.R +++ b/tests/dev/generate_roxygen_tests.R @@ -1,5 +1,5 @@ #!/usr/bin/Rscript -# execute from package TLD: ./tests/dev/gen_roxygen_tests.R +# execute from: ./tests/dev/generate_roxygen_tests.R roxygen_stub <- "roxygen-examples-complete" all_examples <- list.files(file.path("tests", "testthat", roxygen_stub)) unique_tests <- unique(sub("-.*", "", all_examples)) @@ -15,7 +15,7 @@ for (test in unique_tests) { condition <- condition_map[[test]] if (is.null(condition)) condition <- c("warning", "NA") writeLines(con = out_file, c( - "# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.", + "# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.", "", sprintf('test_that("analogous to test-%s: %s", {', roxygen_stub, test), sprintf( diff --git a/tests/testthat/test-roxygen-examples-complete-01.R b/tests/testthat/test-roxygen-examples-complete-01.R index 478217bbd..6e6e65c9b 100644 --- a/tests/testthat/test-roxygen-examples-complete-01.R +++ b/tests/testthat/test-roxygen-examples-complete-01.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 01", { expect_warning(test_collection("roxygen-examples-complete", "^01-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-02.R b/tests/testthat/test-roxygen-examples-complete-02.R index 19bc51362..b04e9dcb8 100644 --- a/tests/testthat/test-roxygen-examples-complete-02.R +++ b/tests/testthat/test-roxygen-examples-complete-02.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 02", { expect_warning(test_collection("roxygen-examples-complete", "^02-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-03.R b/tests/testthat/test-roxygen-examples-complete-03.R index 8a2d15512..ce0a3222a 100644 --- a/tests/testthat/test-roxygen-examples-complete-03.R +++ b/tests/testthat/test-roxygen-examples-complete-03.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 03", { expect_warning(test_collection("roxygen-examples-complete", "^03-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-04.R b/tests/testthat/test-roxygen-examples-complete-04.R index 87612f3e9..cd2b273af 100644 --- a/tests/testthat/test-roxygen-examples-complete-04.R +++ b/tests/testthat/test-roxygen-examples-complete-04.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 04", { expect_warning(test_collection("roxygen-examples-complete", "^04-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-05.R b/tests/testthat/test-roxygen-examples-complete-05.R index c93864dde..b6eb4381c 100644 --- a/tests/testthat/test-roxygen-examples-complete-05.R +++ b/tests/testthat/test-roxygen-examples-complete-05.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 05", { expect_warning(test_collection("roxygen-examples-complete", "^05-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-06.R b/tests/testthat/test-roxygen-examples-complete-06.R index e2e069183..7ea758c03 100644 --- a/tests/testthat/test-roxygen-examples-complete-06.R +++ b/tests/testthat/test-roxygen-examples-complete-06.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 06", { expect_warning(test_collection("roxygen-examples-complete", "^06-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-07.R b/tests/testthat/test-roxygen-examples-complete-07.R index 7b3ac96ab..e81ad2583 100644 --- a/tests/testthat/test-roxygen-examples-complete-07.R +++ b/tests/testthat/test-roxygen-examples-complete-07.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 07", { expect_warning(test_collection("roxygen-examples-complete", "^07-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-08.R b/tests/testthat/test-roxygen-examples-complete-08.R index c1225c62b..8b5ed8bd4 100644 --- a/tests/testthat/test-roxygen-examples-complete-08.R +++ b/tests/testthat/test-roxygen-examples-complete-08.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 08", { expect_warning(test_collection("roxygen-examples-complete", "^08-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-09.R b/tests/testthat/test-roxygen-examples-complete-09.R index fe3d7b7ae..464b937ca 100644 --- a/tests/testthat/test-roxygen-examples-complete-09.R +++ b/tests/testthat/test-roxygen-examples-complete-09.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 09", { expect_warning(test_collection("roxygen-examples-complete", "^09-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-10.R b/tests/testthat/test-roxygen-examples-complete-10.R index 98e23a915..125bee5e2 100644 --- a/tests/testthat/test-roxygen-examples-complete-10.R +++ b/tests/testthat/test-roxygen-examples-complete-10.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 10", { expect_warning(test_collection("roxygen-examples-complete", "^10-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-11.R b/tests/testthat/test-roxygen-examples-complete-11.R index 9bcd7a142..041683ea9 100644 --- a/tests/testthat/test-roxygen-examples-complete-11.R +++ b/tests/testthat/test-roxygen-examples-complete-11.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 11", { expect_warning(test_collection("roxygen-examples-complete", "^11-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-12.R b/tests/testthat/test-roxygen-examples-complete-12.R index baddb8143..7cdb1af67 100644 --- a/tests/testthat/test-roxygen-examples-complete-12.R +++ b/tests/testthat/test-roxygen-examples-complete-12.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 12", { expect_warning(test_collection("roxygen-examples-complete", "^12-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-13.R b/tests/testthat/test-roxygen-examples-complete-13.R index c2a711fb6..0bd1d9a63 100644 --- a/tests/testthat/test-roxygen-examples-complete-13.R +++ b/tests/testthat/test-roxygen-examples-complete-13.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 13", { expect_warning(test_collection("roxygen-examples-complete", "^13-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-14.R b/tests/testthat/test-roxygen-examples-complete-14.R index 9d9447335..a93c20704 100644 --- a/tests/testthat/test-roxygen-examples-complete-14.R +++ b/tests/testthat/test-roxygen-examples-complete-14.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 14", { expect_warning(test_collection("roxygen-examples-complete", "^14-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-15.R b/tests/testthat/test-roxygen-examples-complete-15.R index 2c309d95a..243697af7 100644 --- a/tests/testthat/test-roxygen-examples-complete-15.R +++ b/tests/testthat/test-roxygen-examples-complete-15.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 15", { expect_warning(test_collection("roxygen-examples-complete", "^15-", transformer = style_text, scope = "spaces"), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-16.R b/tests/testthat/test-roxygen-examples-complete-16.R index f15429d75..40b577824 100644 --- a/tests/testthat/test-roxygen-examples-complete-16.R +++ b/tests/testthat/test-roxygen-examples-complete-16.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 16", { expect_warning(test_collection("roxygen-examples-complete", "^16-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-17.R b/tests/testthat/test-roxygen-examples-complete-17.R index 66cbf9b1a..cd8f2ee19 100644 --- a/tests/testthat/test-roxygen-examples-complete-17.R +++ b/tests/testthat/test-roxygen-examples-complete-17.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 17", { expect_warning(test_collection("roxygen-examples-complete", "^17-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-18.R b/tests/testthat/test-roxygen-examples-complete-18.R index 814d057b0..53497fe61 100644 --- a/tests/testthat/test-roxygen-examples-complete-18.R +++ b/tests/testthat/test-roxygen-examples-complete-18.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 18", { expect_warning(test_collection("roxygen-examples-complete", "^18-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-19.R b/tests/testthat/test-roxygen-examples-complete-19.R index 93d205826..26d44dd98 100644 --- a/tests/testthat/test-roxygen-examples-complete-19.R +++ b/tests/testthat/test-roxygen-examples-complete-19.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 19", { expect_warning(test_collection("roxygen-examples-complete", "^19-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-20.R b/tests/testthat/test-roxygen-examples-complete-20.R index 79ac89408..8ea8533b0 100644 --- a/tests/testthat/test-roxygen-examples-complete-20.R +++ b/tests/testthat/test-roxygen-examples-complete-20.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 20", { expect_warning(test_collection("roxygen-examples-complete", "^20-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-21.R b/tests/testthat/test-roxygen-examples-complete-21.R index 6e6fa4948..2531a16cb 100644 --- a/tests/testthat/test-roxygen-examples-complete-21.R +++ b/tests/testthat/test-roxygen-examples-complete-21.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 21", { expect_warning(test_collection("roxygen-examples-complete", "^21-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-22.R b/tests/testthat/test-roxygen-examples-complete-22.R index 0e2c4334e..087415675 100644 --- a/tests/testthat/test-roxygen-examples-complete-22.R +++ b/tests/testthat/test-roxygen-examples-complete-22.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 22", { expect_warning(test_collection("roxygen-examples-complete", "^22-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-23.R b/tests/testthat/test-roxygen-examples-complete-23.R index ce1b5833a..79472b937 100644 --- a/tests/testthat/test-roxygen-examples-complete-23.R +++ b/tests/testthat/test-roxygen-examples-complete-23.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 23", { expect_error(test_collection("roxygen-examples-complete", "^23-", transformer = style_text), "issues/1242") diff --git a/tests/testthat/test-roxygen-examples-complete-24.R b/tests/testthat/test-roxygen-examples-complete-24.R index 7ceb13a83..af6550d67 100644 --- a/tests/testthat/test-roxygen-examples-complete-24.R +++ b/tests/testthat/test-roxygen-examples-complete-24.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 24", { expect_warning(test_collection("roxygen-examples-complete", "^24-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-25.R b/tests/testthat/test-roxygen-examples-complete-25.R index f36b00424..88412a341 100644 --- a/tests/testthat/test-roxygen-examples-complete-25.R +++ b/tests/testthat/test-roxygen-examples-complete-25.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 25", { expect_warning(test_collection("roxygen-examples-complete", "^25-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-26.R b/tests/testthat/test-roxygen-examples-complete-26.R index ee55bcd21..6d741da8b 100644 --- a/tests/testthat/test-roxygen-examples-complete-26.R +++ b/tests/testthat/test-roxygen-examples-complete-26.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 26", { expect_warning(test_collection("roxygen-examples-complete", "^26-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-27.R b/tests/testthat/test-roxygen-examples-complete-27.R index 8dfa9e0b2..ef2beb0fa 100644 --- a/tests/testthat/test-roxygen-examples-complete-27.R +++ b/tests/testthat/test-roxygen-examples-complete-27.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 27", { expect_warning(test_collection("roxygen-examples-complete", "^27-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-28.R b/tests/testthat/test-roxygen-examples-complete-28.R index d12fb6696..bdc2d75fa 100644 --- a/tests/testthat/test-roxygen-examples-complete-28.R +++ b/tests/testthat/test-roxygen-examples-complete-28.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 28", { expect_warning(test_collection("roxygen-examples-complete", "^28-", transformer = style_text), NA) diff --git a/tests/testthat/test-roxygen-examples-complete-29.R b/tests/testthat/test-roxygen-examples-complete-29.R index bf30fe968..354b791fd 100644 --- a/tests/testthat/test-roxygen-examples-complete-29.R +++ b/tests/testthat/test-roxygen-examples-complete-29.R @@ -1,4 +1,4 @@ -# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R. +# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R. test_that("analogous to test-roxygen-examples-complete: 29", { expect_warning(test_collection("roxygen-examples-complete", "^29-", transformer = style_text), NA)