Skip to contents

Removes lock files that are older than the specified age to prevent stale locks from blocking package installation operations.

Usage

cleanup_stale_locks(cache_dir = NULL, max_age = 300L)

Arguments

cache_dir

(character)
Cache directory path. If NULL, searches common pak cache locations

max_age

(integer)
Maximum age of lock files in seconds (default: 300L)

Value

Invisible NULL