check_clean_userspace(pkg = ".", check_output = tempfile("dircheck"))
Path to package to check
Path to directory where to store check results
data.frame of files that are left after checks
if (FALSE) {
# This runs a check of the current package
all_files <- check_clean_userspace()
all_files
}