getExt {reposTools}R Documentation

Get file extension helper function

Description

Return the file extension.

Usage

getExt(path)

Arguments

path What to get the extension of

Value

character. The extension.

Author(s)

S. Falcon

Examples

##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--    or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (path) 
{
    parts <- strsplit(path, "\.")[[1]]
    last <- parts[length(parts)]
    last
  }

[Package reposTools version 1.8.0 Index]