The R Project SVN R

Rev

Rev 61433 | Rev 64662 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 61433 Rev 63086
Line 26... Line 26...
26
\arguments{
26
\arguments{
27
  \item{x}{character vector giving file paths.}
27
  \item{x}{character vector giving file paths.}
28
  \item{compression}{logical: should compression extension \file{.gz},
28
  \item{compression}{logical: should compression extension \file{.gz},
29
    \file{.bz2} or \file{.xz} be removed first?}
29
    \file{.bz2} or \file{.xz} be removed first?}
30
  \item{dir}{a character string with the path name to a directory.}
30
  \item{dir}{a character string with the path name to a directory.}
31
  \item{exts}{a character vector of possible file extensions.}
31
  \item{exts}{a character vector of possible file extensions (excluding
-
 
32
    the leading dot).}
32
  \item{all.files}{a logical.  If \code{FALSE} (default), only visible
33
  \item{all.files}{a logical.  If \code{FALSE} (default), only visible
33
    files are considered; if \code{TRUE}, all files are used.}
34
    files are considered; if \code{TRUE}, all files are used.}
34
  \item{full.names}{a logical indicating whether the full paths of the
35
  \item{full.names}{a logical indicating whether the full paths of the
35
    files found are returned (default), or just the file names.}
36
    files found are returned (default), or just the file names.}
36
  \item{type}{a character string giving the \sQuote{type} of the files
37
  \item{type}{a character string giving the \sQuote{type} of the files
Line 43... Line 44...
43
    documentation files.  By default, the value of the environment
44
    documentation files.  By default, the value of the environment
44
    variable \env{R_OSTYPE}, or if this is empty, the value of
45
    variable \env{R_OSTYPE}, or if this is empty, the value of
45
    \code{\link{.Platform}$OS.type}, is used.}
46
    \code{\link{.Platform}$OS.type}, is used.}
46
}
47
}
47
\details{
48
\details{
48
  \code{file_ext} returns the file (name) extensions.
49
  \code{file_ext} returns the file (name) extensions (excluding the
-
 
50
  leading dot).
49
  (Only purely alphanumeric extensions are recognized.)
51
  (Only purely alphanumeric extensions are recognized.)
50
 
52
 
51
  \code{file_path_as_absolute} turns a possibly relative file path
53
  \code{file_path_as_absolute} turns a possibly relative file path
52
  absolute, performing tilde expansion if necessary. As from \R 2.13.0
54
  absolute, performing tilde expansion if necessary. As from \R 2.13.0
53
  this is a wrapper for \code{\link{normalizePath}}.  Currently,
55
  this is a wrapper for \code{\link{normalizePath}}.  Currently,
54
  \code{x} must be a single existing path.
56
  \code{x} must be a single existing path.
55
 
57
 
56
  \code{file_path_sans_ext} returns the file paths without extensions.
58
  \code{file_path_sans_ext} returns the file paths without extensions
-
 
59
  (and the leading dot).
57
  (Only purely alphanumeric extensions are recognized.)
60
  (Only purely alphanumeric extensions are recognized.)
58
 
61
 
59
  \code{list_files_with_exts} returns the paths or names of the files in
62
  \code{list_files_with_exts} returns the paths or names of the files in
60
  directory \code{dir} with extension matching one of the elements of
63
  directory \code{dir} with extension matching one of the elements of
61
  \code{exts}.  Note that by default, full paths are returned, and that
64
  \code{exts}.  Note that by default, full paths are returned, and that