[Genabel-commits] r1652 - pkg/ProbABEL/checks/R-tests
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Wed Mar 19 18:11:01 CET 2014
Author: lckarssen
Date: 2014-03-19 18:11:01 +0100 (Wed, 19 Mar 2014)
New Revision: 1652
Modified:
pkg/ProbABEL/checks/R-tests/run_models_in_R_pacox.R
Log:
Fix ProbABEL bug #5404 "ProbABEL's R check for Cox regression doesn't check if the survival package is installed".
Solution: simply quit R if the survival package is not installed.
Modified: pkg/ProbABEL/checks/R-tests/run_models_in_R_pacox.R
===================================================================
--- pkg/ProbABEL/checks/R-tests/run_models_in_R_pacox.R 2014-03-18 15:25:06 UTC (rev 1651)
+++ pkg/ProbABEL/checks/R-tests/run_models_in_R_pacox.R 2014-03-19 17:11:01 UTC (rev 1652)
@@ -1,5 +1,8 @@
cat("Checking Cox PH regression...\n")
-library(survival)
+if (!require(survival)) {
+ cat("The R package 'survival' is not installed. Skipping Cox PH checks\n")
+ q()
+}
args <- commandArgs(TRUE)
srcdir <- args[1]
More information about the Genabel-commits
mailing list