Find LandWeb simulation output files

findSimFile(outputDir = NULL, rep = NULL)

findOldSimFiles(outputDir = NULL, rep = NULL, before = "2024-01-01")

Arguments

outputDir

path to LandWeb output directory.

rep

integer giving the replicate id, or character string in the form of "rep01".

before

date before which files are considered outdated (default "2024-01-01").

Value

path to the file

Examples

if (FALSE) { # \dontrun{
  outDir <- file.path("~/GitHub/LandWeb/outputs/Tolko_AB_S_aspenDispersal_logROS")
  if (dir.exists(outdir)) {
    oldFiles <- findOldSimFiles(outDir)      ## search all reps
    oldFiles <- findOldSimFiles(outDir, 1:5) ## search specific reps
    # fs::file_delete(oldFiles) ## double check before deleting
  }
} # }