isAbsolutePath {ramwas} | R Documentation

## Check if Path is Absolute.

### Description

Check whether a path is relative or absolute.

### Usage

    isAbsolutePath(path)

### Arguments

`path` | Path to be tested.

### Details

The function is designed to word with both Windows and Unix paths.

### Value

`TRUE` if the path is absolute, `FALSE` otherwise.

### Note

This function improves upon the analog function in `R.utils` package. For instance, "~hi" is not an absolute path.

### Author(s)

Andrey A Shabalin andrey.shabalin@gmail.com

### See Also

See also `makefullpath`.

### Examples

    isAbsolutePath( "C:/123" )   # TRUE
    isAbsolutePath( "~123" )     # FALSE
    isAbsolutePath( "~/123" )    # TRUE
    isAbsolutePath( "/123" )     # TRUE
    isAbsolutePath( "\\123" )    # TRUE
    isAbsolutePath( "asd\\123" ) # FALSE
    isAbsolutePath( "a\\123" )   # FALSE

[Package ramwas version 1.14.0 Index]