Add includes
Try /usr/bin/env for local and remote generation

The problem is that locally Rscript is in /usr/local/bin/Rscript and on Travis's servers it is in /usr/bin/Rscript
Permissions