Description Usage Arguments Value Author(s)
I usually write detailed comment headers before functions
in source code files. scenarios:
1. function header
preceded by comment block preceded by (blank line, or top
of file)
2. function header preceded by (blank line or
top of file) -> no comment has been written.
1 2 | import.function.header.from.src.file(func, f,
strip.comment.char = FALSE)
|
func |
a function name, or the function's code |
f |
The path to the file containing the function. |
strip.comment.char |
logical: if TRUE, strip the leading comment characters. |
This code extracts the src code, and the header, or returns ""
Mark Cowley, 2009-10-13
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.