Create a temporary directory for a R package
pkg_dir_temp.RdCreate 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. IfTRUE, 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 thecallargument ofabort()for more information.