File: split_path.Rd

package info (click to toggle)
gtools 3.9.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 748 kB
  • sloc: ansic: 190; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 592 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/split_path.R
\name{split_path}
\alias{split_path}
\title{Split a File Path into Components}
\usage{
split_path(x, depth_first = TRUE)
}
\arguments{
\item{x}{character scalar.  Path to be processed.}

\item{depth_first}{logical.  Should path be returned depth first?  Defaults
to \code{TRUE}.}
}
\value{
Character vector of path components, depth first.
}
\description{
This function converts a character scalar containing a
 \emph{valid} file path into a character vector of path components
 (e.g. directories).
}