anchor.diff:    x = c(.fail.cran, .fail.bioc)
     cat("Writing 00check.log for",length(x),"packages to",fnam,":\n")
     cat(paste(x,collapse=" "), "\n")
  -  cat(capture.output(sessionInfo()), "\n\n", file=fnam, sep="\n")
  +  cat(capture.output(sessionInfo()), "\n", file=fnam, sep="\n")
  +  cat("> BiocManager::install()\n", file=fnam, append=TRUE)
  +  capture.output(BiocManager::install(), type="message", file=fnam, append=TRUE)
  +  cat("> BiocManager::valid()\n", file=fnam, append=TRUE)
  +  capture.output(ans<-BiocManager::valid(), type="message", file=fnam, append=TRUE)
  +  cat(ans, "\n", file=fnam, append=TRUE, sep="\n")
     for (i in x) {
  +    system(paste0("ls | grep '",i,".*tar.gz' >> ",fnam))
       system(paste0("grep -H . ./",i,".Rcheck/00check.log >> ",fnam))
       cat("\n\n", file=fnam, append=TRUE)
     }
  
positive.code:       packageVersion(p) != avail[p,"Version"]) {
      system(paste0("rm -rf ", p, ".Rcheck"))  # Remove last check (of previous version) to move its status() to not yet run
  
      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.
      # If we did download.packages() first and then passed that tar.gz to install.packages(), repos= is set to NULL when installing from
      # local file, so dependencies=TRUE wouldn't know where to get the dependencies. Hence usig install.packages first with repos= set.
  
  
negative.code: }
  cat("New downloaded:",new," Already had latest:", old, " TOTAL:", length(deps), "\n")
  length(deps)
  update.packages(repos=BiocManager::repositories())  # double-check all dependencies are latest too
  
  # Remove the tar.gz no longer needed :
  system("ls *.tar.gz | wc -l")
  