Help file template should precede any source code

Here is a sample .Rd file (the file that get made into R help file) offered by Amanda Blackford. To make your own under Windows, you just:

You will change 'myfunction' to whatever you name your Rd file. When you're done, an HTML file should be created in that directory.