Skip to contents

Create a temporary directory for a R package

Usage

pkg_dir_temp(path, tmp_dir = tempdir(), overwrite = FALSE, call = caller_env())

Arguments

path

A character vector of one or more paths.

tmp_dir

The directory the file will be created in.

overwrite

Default FALSE. If TRUE, overwrite the NAMESPACE file using the same name at the same location.

call

The execution environment of a currently running function, e.g. caller_env(). The function will be mentioned in error messages as the source of the error. See the call argument of abort() for more information.