-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Distributing docopt scripts #18
Comments
Some ideas on best-practices. I usually either ask my users to manually download executables files of interest from my github repos, mark them executable, and to then either use them locally from the repo folder and/or to copy them to
Kind of klunky but you can also give them advice on your README on how add an alias in their
You can also tell them instructions on how to copy them over to somewhere on their path
|
Thanks for the tip! My original comment was from almost two years ago: in the meantime I have settled for the following procedure: The docopt scripts are added to the Basically each individual script gives a bash-interface to single functions in the package (e.g. There is a bash-executable distributed with this package (based on the
then typing |
In case someone wants to give instructions in R the equivalent R command for the above is::
For users without admin permissions (but were able to install your package locally) would be better to suggest::
Everything in the above commands should work cross-platform (for more recent versions of Windows) except the location of where to place the symbolic link (although the above two locations should work on most *Nix systems). |
I'd like to add docopt scripts to my packages, so people working in different environments can use my R-implementations without needing to work inside R themselves. They can then access the routines via a terminal.
R offers a nice option to add executables inside the directory "exec" in an R package. On *nix platforms, these are made executable on install, so they can be immediately used. This seems the primary place to distribute docopt-scripts.
However, my question is how to link these scripts. Their location is rather hidden and difficult to find for non-R-users (within R, you can use the R-function
find.package()
).What would be best-practice?
The text was updated successfully, but these errors were encountered: