From: Don Armstrong Date: Wed, 10 Oct 2012 02:41:41 +0000 (-0700) Subject: start the R process first X-Git-Url: https://git.donarmstrong.com/?p=ikiwiki_plugins.git;a=commitdiff_plain;h=81e4e3aa4d533c1e92ad14a794b692b92880168e start the R process first --- diff --git a/sweavealike.pm b/sweavealike.pm index c3dad53..0dd0e1b 100644 --- a/sweavealike.pm +++ b/sweavealike.pm @@ -119,6 +119,8 @@ sub preprocess { chdir($config{srcdir}); $pagestate{$param{page}}{$id}{R} = Statistics::R->new(shared => 1) or error("Unable to create an R process"); + $pagestate{$param{page}}{$id}{R}->start() or + error("Unable to start the R process"); chdir($cur_dir); } # we currently don't bother to support anything but outputing the