MCPcopy Create free account
hub / github.com/biometrics/openbr / runRScript

Function runRScript

openbr/core/qtutils.cpp:357–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355}
356
357bool runRScript(const QString &file)
358{
359 QProcess RScript;
360 RScript.start("Rscript", QStringList() << file);
361 RScript.waitForFinished(-1);
362 bool result = ((RScript.exitCode() == 0) && (RScript.error() == QProcess::UnknownError));
363 if (!result) qDebug("Failed to run 'Rscript', did you forget to install R? "
364 "See online documentation of 'br_plot' for required R packages. "
365 "Otherwise, try running Rscript on %s to get the exact error.", qPrintable(file));
366 return result;
367}
368
369bool runDot(const QString &file)
370{

Callers 2

EvalRegressionFunction · 0.85
finalizeMethod · 0.85

Calls 2

errorMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected