Created
September 10, 2015 18:26
-
-
Save DarwinAwardWinner/2eb3705fb6ddab08ee47 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# -*- mode:R -*- | |
#PBS -l nodes=1:ppn=8,mem=30gb | |
'\' >/dev/null 2>&1 || true | |
# This is bash code to set up the environment | |
echo "Hello from bash!" | |
echo "Args are: $@" | |
# Bash setup code ends here | |
Rscript - "$@" <<"EOF"; | |
invisible('#') | |
## R code starts after this line | |
message("Hello from R!") | |
args <- commandArgs(TRUE) | |
message("Args are: ", deparse(args)) | |
EOF <- NULL | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment