I've simply added a "library(grid)" call at the beginning of the R script generation since R 2.14.2 doesn't seem to load the "grid" package as default. I haven't tested it on previous R versions (you may edit the R version comment to be more precise if desired), but I'm almost certain that this library call shouldn't do any harm on them.

Signed-off-by: Ryan Poplin <rpoplin@broadinstitute.org>
This commit is contained in:
Lechu 2012-03-04 03:32:30 +01:00 committed by Ryan Poplin
parent f6905630bb
commit 027843d791
1 changed files with 2 additions and 0 deletions

View File

@ -372,6 +372,8 @@ public class VariantRecalibrator extends RodWalker<ExpandingArrayList<VariantDat
stream.println("library(ggplot2)");
// For compactPDF in R 2.13+
stream.println("library(tools)");
// For graphical functions R 2.14.2+
stream.println("library(grid)");
createArrangeFunction( stream );