Learn R Programming

logcondens.mode (version 1.0.1)

dir.exists: Utility for checking existence of a directory.

Description

Utility using a system interface to check whether a directory exists.

Usage

dir.exists(path)

Arguments

path
Character string.

Value

Returns TRUE or FALSE.

Details

Uses system function to test if the directory specified by path exists.

Examples

Run this code
dir.exists("/") ## true (on *nix) 
dir.exists("~/") ## probably true

Run the code above in your browser using DataLab