This uses a fairly rudimentary algorithm where any files in doc with a name that exists in vignettes are removed.

clean_vignettes(pkg = ".")

## Arguments

pkg The package to use, can be a file path to the package or a package object. See as.package() for more information.