on_validate_path: Function called to validate path correctness

View source: R/check.R

on_validate_pathR Documentation

Function called to validate path correctness

Description

Function called to validate path correctness

Usage

on_validate_path(fun)

Arguments

fun

a function; if missing, returns value of the path.chain.on.path.not.exists option

Examples

# We'll create an options backup for this example
old.options <- options()
is_path_valid <- function(x) grepl("\\.fst", x)
on_validate_path(is_path_valid)
on_validate_path()
options(old.options)

krzjoa/path.chain documentation built on Oct. 9, 2024, 5:49 a.m.