I need to distribute my code as R package in order to publish a paper. The script is supposed to run in batch mode with keyword argument
e.g.
Rscript script.R --input=foo.txt --barparameter=bar --outputname=output.txt
It's pretty well written with built-in help function and stuff.
I followed the instruction on how to create R package and things are going fine. However, my script is supposed to be used as the whole script, not its individual function. So far, all R package that I know will provide only the function. I don't know what I suppose to put in ./R
directory of R package in this case. Any recommendations would be appreciated.