Use this function to clear the package cache of some or all repositories (depending on pattern) if the git operations fail.

clear_cache(pattern = "*")

Arguments

pattern

files to remove, see unlink (wildcards * and ? allowed)

Examples

if (FALSE) {
clear_cache()
clear_cache("*elecinfra*")
}