Displaying 1 result from an estimated 1 matches for "something_is_wrong_with_inputs".
2008 Aug 14
4
Documenting a function: How to get the comments in a function similar to args()
Hi All,
Imagine that we have a function defined as follows:
foo <-
# comments line 1
# comments line 2
# etc..
function(x){
x <- 2
}
I can use args(foo) to get the arguments for foo. Is there any function to
get
the comment lines at the beginning of the function?
>From what I understand the prompt() function allows one to create a .Rd file
which
can be compiled but I am not there yet.