tests/testthat/helper-transform.R

taudem_transform <- function(x) {
  x <- gsub("Nodata.*", "", x)
  x <- gsub("[0-9]", "", x)
  x <- gsub(
    "Input file .* has projected coordinate system.",
    "Input file blop.tif has projected coordinate system.",
    x
  )
  x <- gsub( "MoveOutletsToStreams","MoveOutletsToStrm", x)
  x <- gsub("Found TauDEM path \\(.*\\).", "Found TauDEM path", x)
  x <- gsub("Found .* \\(MPI\\).", "Found MPI (MPI).", x)
  x <- gsub("Found GDAL.*", "Found GDAL", x)
  x <- gsub("Found TauDEM executables directory \\(.*\\).", "Found TauDEM executables directory.", x)
  x[nzchar(x)]
}

Try the traudem package in your browser

Any scripts or data that you put into this service are public.

traudem documentation built on May 29, 2024, 9:49 a.m.