From e9871a75439de39e6294dbdd8224c881a7d2b299 Mon Sep 17 00:00:00 2001 From: Mantra Date: Wed, 24 Jan 2024 19:08:55 +0000 Subject: [PATCH] add good and bad examples for new file naming --- .../bad-ex-two-orderly-files/bad-ex-two-orderly-files.R | 3 +++ tests/testthat/examples/bad-ex-two-orderly-files/orderly.R | 3 +++ .../examples/reportname-orderly-file/reportname-orderly-file.R | 3 +++ 3 files changed, 9 insertions(+) create mode 100644 tests/testthat/examples/bad-ex-two-orderly-files/bad-ex-two-orderly-files.R create mode 100644 tests/testthat/examples/bad-ex-two-orderly-files/orderly.R create mode 100644 tests/testthat/examples/reportname-orderly-file/reportname-orderly-file.R diff --git a/tests/testthat/examples/bad-ex-two-orderly-files/bad-ex-two-orderly-files.R b/tests/testthat/examples/bad-ex-two-orderly-files/bad-ex-two-orderly-files.R new file mode 100644 index 00000000..c7a6add5 --- /dev/null +++ b/tests/testthat/examples/bad-ex-two-orderly-files/bad-ex-two-orderly-files.R @@ -0,0 +1,3 @@ +orderly2::orderly_artefact("Some data", "data.rds") +d <- data.frame(a = 1:10, x = runif(10), y = 1:10 + runif(10)) +saveRDS(d, "data.rds") diff --git a/tests/testthat/examples/bad-ex-two-orderly-files/orderly.R b/tests/testthat/examples/bad-ex-two-orderly-files/orderly.R new file mode 100644 index 00000000..c7a6add5 --- /dev/null +++ b/tests/testthat/examples/bad-ex-two-orderly-files/orderly.R @@ -0,0 +1,3 @@ +orderly2::orderly_artefact("Some data", "data.rds") +d <- data.frame(a = 1:10, x = runif(10), y = 1:10 + runif(10)) +saveRDS(d, "data.rds") diff --git a/tests/testthat/examples/reportname-orderly-file/reportname-orderly-file.R b/tests/testthat/examples/reportname-orderly-file/reportname-orderly-file.R new file mode 100644 index 00000000..c7a6add5 --- /dev/null +++ b/tests/testthat/examples/reportname-orderly-file/reportname-orderly-file.R @@ -0,0 +1,3 @@ +orderly2::orderly_artefact("Some data", "data.rds") +d <- data.frame(a = 1:10, x = runif(10), y = 1:10 + runif(10)) +saveRDS(d, "data.rds")