On 12 November 2010 14:45, Peter <biopython(a)maubp.freeserve.co.uk> wrote:
On Fri, Nov 12, 2010 at 1:09 PM, Anthony Ferrari
> OK. I have made some tests this morning to figure this all out.
> Indeed, the problem with ">" is that it catches every single message R
> to STDOUT and not only object of your interest, so this is definitely not
> reliable solution. Solution suggests by Alex worked perfectly well.
> I would suggest also to use the 'trailingOnly=TRUE' option within the
> commandArgs() call in the R script. That allows you to only care about
> args given after the '--args' option. You can then forget how many
> options you have in your command line (--vanilla, --slave, -f or
> First parameter useful to your R script would then be
> commandArgs(trailingOnly=T) and so on.
That is a very handy tip, commandArgs(trailingOnly=T), thanks!
> There is just another little point that I would like to clarify. At the
> beginning my tests didn't work at all and I realize that I have to give
> full path to the R script (in the command tag) to make it work.
What happens if you do <command> rather than <command
This is worse. Here's what I got :
An error occurred running this job: /var/spool/torque/mom_priv/jobs/
77.node054.cluster.SC: line 11: ./r_script_wrapper.sh: No such file or
This time even the wrapper is not found. And I have to specify both paths to
make it work. (To r_script_wrapper.sh and rcode.R)
P.S. Cross posted to Galaxy-dev, could we continue this there?