Re: [R] Problem calling R from within perl script on Windows

2010-06-19 Thread Berend Hasselman
Barry Hall wrote: > > I need to call R from within a Perl script. I do so using a system call > like this: > @args = ('R --vanilla --quiet --file=Rblock'); > system(@args) == 0 or die "system @args failed: $!"; > Try this @args = ('R', '--vanilla --quiet --file=Rblock'); i.e. make @args c

Re: [R] Problem calling R from within perl script on Windows

2010-06-18 Thread Erik Iverson
Someone with more Windows and/or Perl experience will be of more use, but guessing here: 1) Try calling system with a program that echoes the path, perhaps the system command is not using the same path variable as you think. 2) specify the full path to R (using proper escaping of backslashes

Re: [R] Problem calling R from within perl script on Windows

2010-06-18 Thread Gabor Grothendieck
On Fri, Jun 18, 2010 at 3:11 PM, Barry Hall wrote: > > I need to call R from within a Perl script.  I do so using a system call like > this: > @args = ('R --vanilla --quiet --file=Rblock'); > system(@args) == 0 or die "system @args failed: $!"; > > The script works perfectly when run in Mac OSX or