Skip to contents

Compares the modification time of the cached graph.rds against the modification times of all .R files under project_path. Returns TRUE if any R file is newer than the cache.

Usage

is_cache_stale(project_path = ".")

Arguments

project_path

Character(1). Root directory of the R project.

Value

Logical(1): TRUE if the cache is stale or absent.

Examples

if (FALSE) { # \dontrun{
if (is_cache_stale("mypkg")) {
  g <- build_rrlm_graph("mypkg")
  save_graph_cache(g)
}
} # }