resetNewGeoms: Reset processed files

View source: R/geomUpdateUtils.R

resetNewGeomsR Documentation

Reset processed files

Description

@description Resets all files in the "tools/process" folder back to "tools/toProcess". Useful in the event that something was processed improperly and you need to reset the geometries to a more stable version. Running when not necessary will result in files being moved to the toProcess folder that do not need to be processed again. This could lead to errors if there are conflicting files in the "processed" folder. @param file_list a vector of file names to be reset. if NULL, default, all files in the processed folder will be reset.

Usage

resetNewGeoms(file_list = NULL, ...)

Arguments

...

pass arguments to file.copy

Examples

## Not run: 
dir.create(here::here("tools", "toProcess"))
file.create(here::here("tools", "processed", "processTestFile.R"))
localcovid19now:::resetNewGeoms("processTestFile.R")

## End(Not run)

sjbeckett/subregionalcovid19 documentation built on Feb. 7, 2023, 6 a.m.