Construct path to file without doubled separators
file_path(..., fsep = .Platform$file.sep)
Arguments
... |
character vectors |
fsep |
the path separator to use |
Value
character file path
Examples
#> [1] "files//data//cars.RData"
file_path("files/", "data/", "cars.RData")
#> [1] "files/data/cars.RData"