Dear All,

I would like to ask a question on how to incorporate into an R script help 
information for the user. I vaguely recall that I saw some instructions on an R 
manual, but am not able to figure them out. Hereunder is the basic setting:

1.  I finished writing an R script, my_script.r, that is a function (the 
function is named "my_func") for a statistical procedure. This means that the 
user only needs to: source("directory_of_script\my_script.r"), then run, 
my_func(arg1, arg2, ..), to execute the procedure.

2. I would like to add some lines into "my_script.r", so that a user can get 
information on this file and function by using "?my_func"

Any help or suggestion is appreciated.
Best regards,
Chee
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to