| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/paths.R |
| 3 |
\name{dir_exists} |
| 4 |
\alias{dir_exists} |
| 5 |
\alias{file_exists} |
| 6 |
\title{Test the existence of files and directories} |
| 7 |
\usage{ |
| 8 |
dir_exists(x) |
| 9 |
|
| 10 |
file_exists(x) |
| 11 |
} |
| 12 |
\arguments{ |
| 13 |
\item{x}{A vector of paths.} |
| 14 |
} |
| 15 |
\value{ |
| 16 |
A logical vector. |
| 17 |
} |
| 18 |
\description{ |
| 19 |
These are wrapper functions of [\verb{utils::file_test()]} to test the |
| 20 |
existence of directories and files. Note that \code{file_exists()} only tests |
| 21 |
files but not directories, which is the main difference between |
| 22 |
\code{\link[=file.exists]{file.exists()}} in base R. If you use are using the R version |
| 23 |
3.2.0 or above, \code{dir_exists()} is the same as \code{\link[=dir.exists]{dir.exists()}} |
| 24 |
in base R. |
| 25 |
} |