RepoFileVersion: Return index number of the last version of a file

Description Usage Arguments Value Examples

View source: R/RepoFileVersion.R

Description

RepoFileVersion returns the index number of the last version of a file in an input directory.

This function searches in the input directory Path the last version of the input file name FileNamePattern and returns the corresponding index number of such version.

This function is thought for files whose names has a suffix with the version corresponding to its contents (either definitive or partial version).

Usage

1
RepoFileVersion(Path, FileNamePattern)

Arguments

Path

Character vector of length 1 with the path of the search directory.

FileNamePattern

Character vector of length 1 with the name of the file whose last version is queried.

Value

Integer vector of length 1 expressing the last version index number of the input file name in the input search directory.

Examples

1
2
3
4
5
6
## Not run: 
RepoFileVersion('T:/E30183', 'FF_V1.MM122014')
RepoFileVersion('T:/E30183', 'FT_V1.MM122016')
RepoFileVersion('T:/E30183', 'FT_V1.MM122016')

## End(Not run)

david-salgado/RepoReadWrite documentation built on July 19, 2020, 1:42 a.m.