cleanup_rhessys: cleanup_rhessys

View source: R/cleanup_rhessys.R

cleanup_rhessysR Documentation

cleanup_rhessys

Description

Function to remove rhessys output, options to move it to a specific folder or one w unique ID, only delete/move output based on a pattern

Usage

cleanup_rhessys(
  dir = NULL,
  output_name = NULL,
  copy = TRUE,
  destination = NULL
)

Arguments

dir

Directory to look for output files within. To be safe function will not look recursively in subfolders.

output_name

The base name of the rhessys output, used to select only one set of rhessy outputs (still getting all of the varyious spatial + temporal levels for that output)

copy

TRUE/FALSE should the output be copied or just deleted

destination

Specify a destination for output to be copied to, if left NULL a folder will be generated with a unique name with format rh_out_datetime

Author(s)

William Burke


ryanrbart/RHESSysIOinR documentation built on March 30, 2024, 11:15 p.m.