getDirectoryPath-character-method: Get Directory Path

Description Usage Arguments Value Author(s) References See Also Examples

Description

See generic: getDirectoryPath

Usage

1
2
## S4 method for signature 'character'
getDirectoryPath(path = ".", ...)

Arguments

path

character. Vector of file paths. Default: see getDirectoryPath-missing-RappCoreDirectorysys-RappCoreDirectorysys-method.

...

Further arguments passed to: decomposePath

Value

See method getDirectoryPath-DecomposedPath.S3-method

Author(s)

Janko Thyson janko.thyson@rappster.de

References

https://github.com/Rappster/filesystr

See Also

getDirectoryPath, getDirectoryPath-DecomposedPath.S3-method

Examples

 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
## Not run: 

path <- c(
  ".",
  "..",
  "dir_a", 
  "dir_a/",
  "dir_b", 
  "dir_b/sub_1",
  "dir_b/sub_1/file.txt",
  "dir_b/sub_1/file.txt/",
  "dir_b/nonex",
  "dir_b/nonex/",
  "dir_b/nonex/file.txt",
  "nonex",
  "nonex/sub_1",
  "nonex/sub_1/file.txt",
  "nonex/foo.tgz", 
  "another nonex\\file.tar.gz", 
  "a_file", 
  "quux. quuux.tbz2", 
  "~/file.tar.xz",
  "", 
  NA_character_
)
getDirectoryPath(path = path)
getDirectoryPath(path = path, shortform = TRUE)
getDirectoryPath(path = character())
getDirectoryPath()


## End(Not run)

rappster/filesystr documentation built on May 26, 2019, 11:17 p.m.