search for: start_sharedr

Displaying 1 result from an estimated 1 matches for "start_sharedr".

2004 Feb 15
1
source() function and crash of R!
...e used in 2 ways. Starting a R interpreter to be used just by the Perl process it self, or is possible to start the R interpreter to be shared between different process. Here's an example of use from Perl of a shared bridge: use Statistics::R ; my $R = new Statistics::R() ; $R->start_sharedR ; $R->send('x = 2^10') ; $R->send('print(x)') ; my $return = $R->read ; ## This should print: value: [1] 1024 print "value: $return\n" ; exit; Soo, I can have different process using the same bridge, and the method start_sharedR() only start...