[Lme4-commits] r1814 - pkgtests
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Thu Apr 25 16:36:49 CEST 2013
Author: bbolker
Date: 2013-04-25 16:36:49 +0200 (Thu, 25 Apr 2013)
New Revision: 1814
Modified:
pkgtests/lme4deptests.R
Log:
skip if not missing packages
Modified: pkgtests/lme4deptests.R
===================================================================
--- pkgtests/lme4deptests.R 2013-04-25 13:27:40 UTC (rev 1813)
+++ pkgtests/lme4deptests.R 2013-04-25 14:36:49 UTC (rev 1814)
@@ -21,8 +21,9 @@
## FIXME: should get these straight from DESCRIPTION file
pkgdep <- c("Rcpp","RcppEigen","minqa")
instPkgs <- installed.packages(lib.loc=libdir,noCache=TRUE)
-pkgdepMiss <- setdiff(lme4dep,c("R",rownames(instPkgs)))
-install.packages(pkgdepMiss,lib=libdir)
+pkgdepMiss <- setdiff(pkgdep,c("R",rownames(instPkgs)))
+if (length(pkgdepMiss)>0)
+ install.packages(pkgdepMiss,lib=libdir)
if (reinstall_pkg) {
install.packages(locpkg,repos=NULL,lib=libdir)
More information about the Lme4-commits
mailing list