title: Installing executable scripts with R package
body: <p>In most scripting languages (e.g. Ruby, Python, etc.) the package manager (e.g. gem, pip, etc.) can install scripts as executables and link them to a directory referenced in the PATH variable (e.g. /usr/local/bin). This turns those executable scripts into shell commands that the user can run in an standalone manner and outside the programming interface. </p>
  
  <p>I wonder if there is such a possibility in R as well. Given that R uses standard Makefiles, I guess there must be a way to do so, albeit a non-standard one. I already know we can read command line arguments in a R script <a href="http://www.jonzelner.net/statistics/make/docker/reproducibility/2016/05/31/script-is-a-program/" rel="noreferrer">using the <code>docopt</code> package</a>. But is there a way to install the script as an executable upon the installation of a package?</p>
  
  <p>It would be great to have a lead on this topic, but a single working example from CRAN would suffice as well. </p>