title: Executable script in R package `inst/`
body: <p>I am writing an R package (for internal use, will never be on CRAN). One of my functions calls a shell script containing <code>node.js</code> commands. I've put the file in <code>inst/node_script.sh</code>, so that when the package is installed I can call the script with </p>
  
  <pre><code>system(system.file("./node_script.sh", package = "mypackage"))
  </code></pre>
  
  <p>This works great on my development machine. But when I install the package on a test machine, <code>node_script.sh</code> is in the proper place, but it drops the executable mode, so I can't run the script without first <code>chmod +x ...</code>. Three questions:</p>
  
  <ul>
  <li>How can I keep the file permissions on my script file through install?</li>
  <li>Is there a clean way to set them afterwards? I'm using <code>devtools::install_github</code></li>
  <li>Is this even the best way to go about this?</li>
  </ul>