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
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
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
3 matches
Mail list logo