I know about Rscript, that ,however, is external solution (actually what I am doing now). I would like something I can keep inside the same package repository. i.e.
my_package
DESCRIPTION
-R
-scripts
...
and then I could run something like myscript.R -a 1-b 2. I guess I could put the script folder of the package in the $PATH but that will be tedious to maintain I think. In the python case, the script that you run (with arguments) is really part of the package so it is updated every time you reinstall the package.