Skip to content
This repository was archived by the owner on Nov 21, 2020. It is now read-only.
This repository was archived by the owner on Nov 21, 2020. It is now read-only.

compatible with R version 3.4.4 (2018-03-15)? #42

@marco86to

Description

@marco86to

Hello, thanks for you nice and useful work!

I have installed R version 3.4.4 (2018-03-15) on Ubuntu 16.04.5 LTS. I have installed your class trough composer and upgrade it to the dev-master version.

I then run a basic php script:
`ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

require 'vendor/autoload.php';

use Kachkaev\PHPR\RCore;
use Kachkaev\PHPR\Engine\CommandLineREngine;

$args = array();
$args['pathToErrorFile'] = '/home/marco/logs/errors.txt';

$prog = new CommandLineREngine('/usr/bin/R', $args);
$r = new RCore($prog);

echo $r->run('exp(1)');`

but the page enter in a infinite loop when I try to make the run function. no log file is created.

I have also tried to run the following code with the same result:
$rProcess = $r->createInteractiveProcess(); $rProcess->start(); $rProcess->write('x = 100'); $rProcess->write('x * x'); echo $rProcess->getAllResult();

if I run R as apache (sudo -u www-data /usr/bin/R) I am able to run correctly all the comands on R

thank-you
Marco

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions