tempfiles: Temporary directory and file creation

Description Usage Arguments Value Author(s)

Description

These are wrappers around tempdir and tempfile that creates the directory or file, to ensure a correctly normalized filepath (i.e., on macOS).

Usage

1
2
3
td(dir = tempdir())

tf(ext = ".tif", dir = td())

Arguments

dir

Path to use as temporary directory. A subdirectory will be created. Default is to use the R session temporary directory.

ext

File extension to give to the newly create file.

Value

Character string indicating the filepath to the newly created file.

Author(s)

Alex Chubaty


achubaty/amc documentation built on April 6, 2021, 6:56 a.m.