Construct path to file in a temporary directory

temp_path(..., fsep = .Platform$file.sep)

Arguments

...

arbitrary character objects

fsep

the path separator to use.

Value

a path

Details

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.

Examples

temp_path("files", "report.csv")
#> [1] "/tmp/Rtmp4l1UVj/files/report.csv"