lazyExists: Does an object exist in the lazyDir

Description Usage Arguments Value Author(s) See Also Examples

Description

Does an object exist in the lazyDir

Usage

1
lazyExists(objNames, lazyDir = NULL, exact = TRUE)

Arguments

objNames

A character vector indicating the object names to test

lazyDir

the lazyDir to use

exact

Should the character string matching be exact, i.e., ^objNames$ in regexp. Passed to lazyLs()

Value

Logical

Author(s)

Eliot McIntire

See Also

lazyLs, lazyLoad2

Examples

1
2
3
4
5
6
7
lazyDir(file.path(tempdir(), "lazyDir"), create=TRUE)
a <- rnorm(10)
lazySave(a)
lazyExists("a")
lazyRm("a")
lazyExists("b") # error, does not exist
unlink(file.path(tempdir(), "lazyDir"), recursive=TRUE)

PredictiveEcology/lazyR documentation built on May 8, 2019, 3:10 p.m.