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

package description, can be path or package name. See as.package() for more information