[adegenet-commits] r522 - pkg/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Jan 8 12:14:46 CET 2010


Author: jombart
Date: 2010-01-08 12:14:43 +0100 (Fri, 08 Jan 2010)
New Revision: 522

Modified:
   pkg/R/seqTrack.R
Log:
on the way to having SeqTrackG work. 


Modified: pkg/R/seqTrack.R
===================================================================
--- pkg/R/seqTrack.R	2010-01-07 16:29:49 UTC (rev 521)
+++ pkg/R/seqTrack.R	2010-01-08 11:14:43 UTC (rev 522)
@@ -330,7 +330,13 @@
     ## CHECKS ##
     if(!require("graph")) stop("the graph package is not installed")
     if(!require("RBGL")) stop("the RBGL package is not installed")
-    if(!exists("edmondsOptimumBranching")) stop("edmondsOptimumBranching does not exist; \nmake sure to use the latest Bioconductor (not CRAN) version of RBGL")
+    if(!exists("edmondsOptimumBranching")) {
+        stop("edmondsOptimumBranching does not exist; \nmake sure to use the latest Bioconductor (not CRAN) version of RBGL")
+        cat("\nWould you like to try and install latest version of RBGL (needs internet connection): ")
+
+        source("http://bioconductor.org/biocLite.R")
+        biocLite("RBGL")
+    }
     optim <- match.arg(optim)
     res.type  <- match.arg(res.type)
 



More information about the adegenet-commits mailing list