| 355 | } |
| 356 | |
| 357 | bool 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 | |
| 369 | bool runDot(const QString &file) |
| 370 | { |
no test coverage detected