Create temporary diectory and return its name
create_temp_dir(..., warn = FALSE, recursive = FALSE, fsep = .Platform$file.sep)
... | arbitrary character objects |
---|---|
warn | warn, if folder already exists |
recursive | ogical. Should elements of the path other than the last be created? If true, like the Unix command mkdir -p |
fsep | the path separator to use |
# Simply create and return temporal directory create_temp_dir()#> [1] "/tmp/Rtmp4l1UVj"# Create temp dir and return concatenated path # Keep in mind, that 'files' and 'report_2020.xls' will not be created. create_temp_dir("files", "report_2020.xls")#> [1] "/tmp/Rtmp4l1UVj/files/report_2020.xls"