unitTests | R Documentation |
Create {testthat}
test cases for the code.
unitTests(code = NULL, ...)
code |
The code for which to create unit tests by 'Groq'. If not provided, it will use what's copied on the clipboard. |
... |
Following arguments can be set manually or in .Renviron:
|
A character value with the response generated by 'Groq'.
## Not run:
cat(unitTests("squared_numbers <- function(numbers) {\n numbers ^ 2\n}"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.