Removes stale lock directories that can prevent package installation.
Lock files are created during package installation and should be automatically removed when installation completes. If installation is interrupted (e.g., by closing R or a crash), these lock files may remain and block future installations.
clean_lock_files(package = "factoextra", lib = .libPaths()[1], ask = TRUE)Invisibly returns TRUE if files were removed, FALSE otherwise.
if (FALSE) { # \dontrun{
# Remove factoextra lock file
clean_lock_files()
# Remove all lock files
clean_lock_files("all")
# Remove without confirmation
clean_lock_files(ask = FALSE)
} # }