File: mark_dirs.Rd

package info (click to toggle)
r-cran-xfun 0.37%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 792 kB
  • sloc: ansic: 242; sh: 22; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 693 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paths.R
\name{mark_dirs}
\alias{mark_dirs}
\title{Mark some paths as directories}
\usage{
mark_dirs(x)
}
\arguments{
\item{x}{Character vector of paths to files and directories.}
}
\description{
Add a trailing backlash to a file path if this is a directory. This is useful
in messages to the console for example to quickly identify directories from
files.
}
\details{
If \code{x} is a vector of relative paths, directory test is done with
path relative to the current working dir. Use \code{xfun::\link{in_dir}()} or
use absolute paths.
}
\examples{
mark_dirs(list.files(find.package("xfun"), full.names = TRUE))
}