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 a 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.from.src.file(func, f,
    import.header = TRUE)
 | 
func | 
 a function name, or the function's body. eg
  | 
f | 
 The path to the file containing the function.  | 
import.header | 
 search for & import the header comments. TRUE/FALSE  | 
This code extracts the src code, and the header, or returns ""
Mark Cowley, 2011-06-21
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.