powered by
Split a docstring into a head, param and tail part.
split_docstring(docstring)
List with 3 elements: head, param and tail.
Docstring of a R function as string, i.e. as character vector of length 1.
uri <- system.file("testfiles/funcs.R", package = "toscutil") func <- "f4" content <- readLines(uri) docstring <- get_docstring(content, func) split_docstring(docstring)
Run the code above in your browser using DataLab