anchor.diff:    for (i in old) {
       cat("Removing",i,"because",f,"is newer\n")
       system(paste0("rm ",i))
  +  }
  +  all = system("ls *.tar.gz", intern=TRUE)
  +  all = sapply(strsplit(all, split="_"),'[',1)
  +  for (i in all[!all %in% deps]) {
  +    cat("Removing",i,"because it", if (!i %in% rownames(avail)) "has been removed from CRAN/Bioconductor" else "no longer uses data.table")
  +    system(paste0("rm ",i,"_*.tar.gz"))
     }
   }
   system("ls *.tar.gz | wc -l")
  
positive.code:   if (!file.exists(fn) ||
        identical(tryCatch(packageVersion(p), error=function(e)FALSE), FALSE) ||
        packageVersion(p) != avail[p,"Version"]) {
      system(paste0("rm -f ", p, "*.tar.gz"))  # Remove previous *.tar.gz.  -f to be silent if not there (i.e. first time seeing this package)
      system(paste0("rm -rf ", p, ".Rcheck"))  # Remove last check (of previous version)
  
      install.packages(p, repos=biocinstallRepos(), dependencies=TRUE)    # again, bioc repos includes CRAN here
      # To install its dependencies. The package itsef is installed superfluously here because the tar.gz will be passed to R CMD check.
      # Not using biocLite() because it does not download dependencies and does not appear to pass dependencies= on.
  
      download.packages(p, destdir="~/build/revdeplib", contriburl=avail[p,"Repository"])   # So R CMD check can run on these
      if (!file.exists(fn)) stop("Still does not exist!:", fn)
  
negative.code: sudo apt-get -y install libmagick++-dev  # for magick
  sudo apt-get -y install libjq-dev libprotoc-dev libprotobuf-dev and protobuf-compiler   # for protolite
  sudo apt-get -y install python-dev  # for PythonInR
  sudo apt-get -y install gdal-bin libgeos-dev  # for rgdal/raster tested via lidR
  sudo R CMD javareconf
  # ENDIF
  
  