@@ -1,24 +0,0 @@
1−diff -Naur R-3.2.2-upstream/tests/reg-packages.R R-3.2.2/tests/reg-packages.R
2−--- R-3.2.2-upstream/tests/reg-packages.R 2015-08-05 17:45:05.000000000 -0430
3−+++ R-3.2.2/tests/reg-packages.R 2015-10-01 02:11:05.484992903 -0430
4−@@ -82,7 +82,8 @@
5− ## pkgB tests an empty R directory
6− dir.create(file.path(pkgPath, "pkgB", "R"), recursive = TRUE,
7− showWarnings = FALSE)
8−-p.lis <- if("Matrix" %in% row.names(installed.packages(.Library)))
9−+matrixIsInstalled <- "Matrix" %in% row.names(installed.packages(.Library))
10−+p.lis <- if(matrixIsInstalled)
11− c("pkgA", "pkgB", "exNSS4") else "exNSS4"
12− for(p. in p.lis) {
13− cat("building package", p., "...\n")
14−@@ -111,8 +112,8 @@
15− tools::assertError(is.null(pkgA:::nilData))
16− }
17−
18−-if(dir.exists(file.path("myLib", "exNSS4"))) {
19−- for(ns in c("pkgB", "pkgA", "Matrix", "exNSS4")) unloadNamespace(ns)
20−+if(matrixIsInstalled && dir.exists(file.path("myLib", "exNSS4"))) {
21−+ for(ns in c(rev(p.lis), "Matrix")) unloadNamespace(ns)
22− ## Both exNSS4 and Matrix define "atomicVector" *the same*,
23− ## but 'exNSS4' has it extended - and hence *both* are registered in cache -> "conflicts"
24− requireNamespace("exNSS4", lib= "myLib")