This function is a wrapper around tempfile, which creates temporary file names whose path contains the process ID of the calling process. This avoids clashes between threads created by functions such as mclapply (in the “parallel” package), which can easily occur with the standard tempfile function.
这个函数是一个包装周围tempfile,创建临时文件名的路径中包含了调用进程的进程ID。这就避免了功能,如mclapply(“水货”包),它可以很容易地发生的标准tempfile功能所创建的线程之间的冲突。
用法----------Usage----------
threadSafeTempFile(pattern = "file")
参数----------Arguments----------
参数:pattern
Character vector giving the initial part of each file name.
字符向量给每个文件名的起始部分。
值----------Value----------
A character vector of temporary file names. No files are actually created.
字符向量的临时文件名。没有文件实际上是创建。