Skip to content

Commit

Permalink
Replaced raster with Matrix in example_checkVersions.R to reduce down…
Browse files Browse the repository at this point in the history
…load time. #43
  • Loading branch information
andrie committed Dec 12, 2014
1 parent 4c626a4 commit 6e81cf4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions inst/examples/example_checkVersions.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ pkgList
oldVers <- data.frame(package=c("foreach", "codetools", "iterators"),
version=c("1.4.0", "0.2-7", "1.0.5"),
stringsAsFactors=FALSE)
addOldPackage(pkgs, path=pth, vers=oldVers$version, type="source")
pkgs <- oldVers$package
addOldPackage(pkgs, path=pth, vers=oldVers$version, repos=revolution, type="source")
# NOTE: older binary versions would need to be build from source

# List package versions in the miniCRAN repo (produces warning about duplicates)
Expand All @@ -42,8 +43,8 @@ pkgList
tools::write_PACKAGES(pkgPathBin, type="win.binary")

# Add new packages (from CRAN) to the miniCRAN repo
addPackage("raster", path=pth, repos=revolution, type="source")
addPackage("raster", path=pth, repos=revolution, type="win.binary")
addPackage("Matrix", path=pth, repos=revolution, type="source")
addPackage("Matrix", path=pth, repos=revolution, type="win.binary")

# Delete temporary folder
unlink(pth, recursive=TRUE)
Expand Down

0 comments on commit 6e81cf4

Please sign in to comment.