variants: Locate Variants of a File in Distinctive Subdirectories

Description Usage Arguments Details Value Author(s) References See Also

Description

Give the paths to identically named files distinguished by enclosing subdirectories, themselves enclosed by a directory bearing the file name.

Usage

1
variants(x, path)

Arguments

x

a vector of file names

path

a directory enclosing subdirectories bearing the name(s) in x

Details

Consider a file tree where identically named variants of a file are stored in distinguishing subdirectories, e.g. directories whose names contain timestamps. The enclosing directory itself bears the same name as the file in question. Thus, one variant of the file may be located at path/file/var1/file and a second at path/file/var2/file. Given file (x) and path, variants returns both of these. If x is of length greater than one, all variants are concatenated into a single character vector.

Value

character

Author(s)

Tim Bergsma

References

http://metrumrg.googlecode.com

See Also


metrumrg documentation built on May 2, 2019, 5:55 p.m.