Function called if path does not exists

on_path_not_exists(fun)

Arguments

fun

a function, one-side formula or NULL; 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() on_path_not_exists(print) on_path_not_exists()
#> function (x, ...) #> UseMethod("print") #> <bytecode: 0x5620685a39f8> #> <environment: namespace:base>
options(old.options)