write_test | R Documentation |
This function reads an R function from a file and generates a test file with documentation.
write_test(file)
file |
The file path of the R function. |
If the input is a character string, the function returns the generated output without creating a test file. Otherwise, it creates a test file and returns the file name.
## Not run:
# Write test for an R function
write_test("path/to/file.R")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.