Skip to contents

If debugging for instance created now useless untracked files and directories, there's no need to remove them "manually". The tool for that is git clean:

Usage

exo_clean_dir(parent_path)

Arguments

parent_path

Path where to create the exercise repo

Value

The path to the new project

Git commands

git clean.

Examples

if (FALSE) { # interactive()
parent_path <- withr::local_tempdir()
path <- exo_clean_dir(parent_path = parent_path)
}