Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions scripts/scafe.tool.cm.annotate
Original file line number Diff line number Diff line change
Expand Up @@ -689,12 +689,12 @@ sub checkRScriptVersion {
my $dirPath = dirname(rel2abs($0));
my $optimize_tangent_R = "$dirPath/../resources/R/optimize_tangent.R";

my $stdOut = `$Rscript_bin --version 2>&1`;
if ($stdOut =~ m/R scripting front-end version (\S+)/) {
&reportAndLogStatus("Checking: Rscript version: $1", 0, "\n");#->2953
} else {
die "Rscript is not installed properly at $Rscript_bin. Quitting.\n";
}
#my $stdOut = `$Rscript_bin --version 2>&1`;
#if ($stdOut =~ m/R scripting front-end version (\S+)/) {
# &reportAndLogStatus("Checking: Rscript version: $1", 0, "\n");#->2953
#} else {
# die "Rscript is not installed properly at $Rscript_bin. Quitting.\n";
#}

if (-s $optimize_tangent_R) {
&reportAndLogStatus("optimize_tangent_R found.", 0, "\n");#->2953
Expand Down
12 changes: 6 additions & 6 deletions scripts/scafe.tool.cm.filter
Original file line number Diff line number Diff line change
Expand Up @@ -712,12 +712,12 @@ sub checkRScriptVersion {
my $predict_prob_R = "$dirPath/../resources/R/predict_prob.R";
my $benchmark_roc_R = "$dirPath/../resources/R/benchmark_roc.R";

my $stdOut = `$Rscript_bin --version 2>&1`;
if ($stdOut =~ m/R scripting front-end version (\S+)/) {
&reportAndLogStatus("Checking: Rscript version: $1", 0, "\n");#->2284
} else {
die "Rscript is not installed properly. Quitting.\n";
}
#my $stdOut = `$Rscript_bin --version 2>&1`;
#if ($stdOut =~ m/R scripting front-end version (\S+)/) {
# &reportAndLogStatus("Checking: Rscript version: $1", 0, "\n");#->2284
#} else {
# die "Rscript is not installed properly. Quitting.\n";
#}

if (-s $build_glm_R) {
&reportAndLogStatus("build_glm_R found.", 0, "\n");#->2284
Expand Down