Skip to contents

Make a folder if it doesn't already exist, or clean a folder that does exist. Only files with the .tex, .RData, .rda or .png suffixes are deleted. This can be useful for code scripts that require existing files to be deleted as part of the script being run.

Usage

make_folder(path, clean = FALSE, ...)

Arguments

path

the path to the folder (character string)

clean

should the directory be cleaned if already present?

...

additional arguments to dir.create.