Construct path to file in a temporary directory
temp_path(..., fsep = .Platform$file.sep)
... | arbitrary character objects |
---|---|
fsep | the path separator to use. |
a path
Be careful: if you call this function, it only creates a path for temporary file/dir. All the rest has to be created on your own, e.g. calling dir.create function.
temp_path("files", "report.csv")#> [1] "/tmp/Rtmp4l1UVj/files/report.csv"