File: fullfile.Rd

package info (click to toggle)
r-cran-matlab 1.0.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 640 kB
  • sloc: sh: 13; makefile: 2
file content (41 lines) | stat: -rw-r--r-- 973 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
% $Id: fullfile.Rd 25 2022-05-30 18:46:01Z proebuck $

\name{fullfile}
\alias{fullfile}
\title{MATLAB fullfile function}
\description{
  Contructs path to a file from components in platform-independent manner
}
\usage{
fullfile(\dots)
}
\arguments{
  \item{\dots}{character strings representing path components}
}
\details{
  Builds a full filename from the directories and filename specified. This
  is conceptually equivalent to \preformatted{

    paste(dir1, dir2, dir3, filename, sep=filesep)

  }
  with care taken to handle cases when directories begin or end with a
  separator.
}
\value{
  Returns character vector of arguments concatenated term-by-term and
  separated by file separator if all arguments have a positive length;
  otherwise, an empty character vector.
}
\author{
  P. Roebuck \email{proebuck1701@gmail.com}
}
\seealso{
  \code{\link{fileparts}},
  \code{\link{filesep}}
}
\examples{
fullfile("", "etc", "profile")	# /etc/profile
}
\keyword{file}