From bfa320adfb453f452f6f663e5a33f55efdc37751 Mon Sep 17 00:00:00 2001 From: jcrodriguez1989 Date: Sat, 18 Mar 2023 10:46:03 -0300 Subject: [PATCH] Fix: Use testthat 3e --- R/create_unit_tests.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/create_unit_tests.R b/R/create_unit_tests.R index 9cc9495..1b6c0cd 100644 --- a/R/create_unit_tests.R +++ b/R/create_unit_tests.R @@ -19,7 +19,8 @@ create_unit_tests <- function(code = clipr::read_clip(allow_non_interactive = TRUE)) { code <- paste(gsub('"', "'", code), collapse = "\n") prompt <- paste0( - 'Create a full testthat file, with test cases for the following R code: "', code, '"' + 'Using testthat 3e, version over 3.0.0, create a full testthat file, with test cases for the ', + 'following R code: "', code, '"' ) parse_response(gpt_get_completions(prompt)) }