split_docstring | R Documentation |
Split a docstring into a head, param and tail part.
split_docstring(docstring)
docstring |
Docstring of a R function as string, i.e. as character vector of length 1. |
List with 3 elements: head, param and tail.
uri <- system.file("testfiles/funcs.R", package = "toscutil")
func <- "f4"
content <- readLines(uri)
docstring <- get_docstring(content, func)
split_docstring(docstring)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.