This forks off a subprocess running R and then writes the command to its standard input through a pipe. This assumes that R is able to accept input through a pipe (ie it doesn't presume a terminal), but it will probably work. See perlopentut for more.open my $proc, "| R" or die "cannot open process R: $!"; autoflush $proc; print $proc "source(\"commands.R\")\n"; close $proc;
In reply to Re: Perl & R ?
by Errto
in thread Perl & R ?
by Jaya
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |