I'm using "qsub" to submit a script to the cluster. My command is this:
qsub -cwd -e err -o out ./ps1.R file1 file2 file3 file4 file5
However, the err file keeps saying:
/farmshare/software/free/oge/2011.11p1/FStrusty/spool/barley03/job_scripts/726885: line 1: syntax error near unexpected token `'hi''
/farmshare/software/free/oge/2011.11p1/FStrusty/spool/barley03/job_scripts/726885: line 1: `print('hi')'
In my script the first three lines say this:
print('hi')
args = commandArgs(TRUE)
table = read.table(args[1], header = T)
I initially also had #!/usr/bin/Rscript at the top. But it had the same error then too. Does anyone know what the problem might be?