View source: R/R08-Templates.R
camr_document_function | R Documentation |
Given an R script that contains a function whose name and arguments follow a specific naming convention, generates a template for the function documentation (determining dependencies on R packages, target outputs, and other project functions).
camr_document_function(
func_name,
tag_for_proj_fun = NULL,
script_path = NULL,
folder_with_scripts = "R"
)
func_name |
A character string, the name of the function for which a template of the documentation is needed. |
tag_for_proj_fun |
A character string,
the substring that precedes every project
function. For example, if project functions
follow the format |
script_path |
A character string, the path to the R script containing the function (relative to the working directory). |
A message displayed in the console with the template for the function documentation, which can be copied and pasted as needed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.