Skip to content
Snippets Groups Projects
Commit 80ba6c8c authored by Langella Olivier's avatar Langella Olivier
Browse files

comprehensive r binary path

parent 51c744a2
No related branches found
No related tags found
No related merge requests found
......@@ -596,12 +596,13 @@ void
McqrRdata::mergeTheRDataFiles(const QString script_path)
{
QSettings settings;
QString r_path = settings.value("mcqr/r_path", "/usr/bin/Rscript").toString();
QString rscript_binary_path =
settings.value("path/rscript_binary", "Rscript").toString();
QStringList script_path_param;
script_path_param << script_path;
QProcess *r_process = new QProcess();
r_process->start(r_path, script_path_param);
r_process->start(rscript_binary_path, script_path_param);
if(!r_process->waitForStarted())
{
......@@ -627,7 +628,7 @@ McqrRdata::mergeTheRDataFiles(const QString script_path)
delete r_process;
throw pappso::PappsoException(
QObject::tr("error executing R process Status != 0 : %1 %2\n%3")
.arg(r_path)
.arg(rscript_binary_path)
.arg(script_path_param.join(" ").arg(result.data())));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment