clean: Clean TAF Directories

View source: R/clean.R

cleanR Documentation

Clean TAF Directories

Description

Remove TAF directories (⁠data⁠, ⁠model⁠, ⁠output⁠, ⁠report⁠) and/or clean the ⁠boot⁠ directory.

Usage

clean(dirs = c("data", model.dir(), "output", "report"), force = FALSE)

Arguments

dirs

directories to delete.

force

passed to clean.boot if any of the dirs is "boot".

Details

The ⁠model⁠ directory may also be named ⁠method⁠ and is cleaned in the same way.

Value

No return value, called for side effects.

Note

The purpose of removing the directories is to make sure that subsequent TAF scripts start by creating new empty directories.

If any of the dirs is "boot", it is treated specially and clean.boot is called to clean the ⁠boot/data⁠, ⁠boot/library⁠, and ⁠boot/software⁠ subdirectories.

See Also

clean.boot cleans the boot directory.

mkdir and rmdir create and remove empty directories.

TAF-package gives an overview of the package.

Examples

## Not run: 
clean()
clean.boot()

## End(Not run)


TAF documentation built on March 31, 2023, 6:51 p.m.